Re: NNTPC: bad group name causes grief with netscape + nntpcache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Hi:
> 	I've just discovered that Netscape has stopped reading any
> newsgroups beacuse nntpcache has encountered an illegal char
> in one of the newsgroup names -- alt.children's-camps
> 
> 	These messages appear in the syslog file whenever I try
> to read another newsgroup:
> 
> Sep 26 19:44:33 gondor ./nntpcached[4282]: sockets.c:326: <- GROUP alt.children's-camps 
> Sep 26 19:44:33 gondor ./nntpcached[4282]: article.c:28:Illegal seek: group name contained suspect characters 
> 
> 	Unfortunately, after that netscape again started to
> make all messages read in uncached remote groups.  Closing and
> reopening the netscape news window didn't seem to help.

Looks like I was a bit ruthless in the newsgroup name conformity ;)

In article.c you can change the following:

X (bool safeGroup (char *s))
{
        if (strspn(s, ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-+=") == strlen(s))
                return TRUE;
        logw (("group name contained suspect characters"));
        return FALSE;
}

and

X (bool safePath (char *s))
{
        if (strstr(s, "../"))
        {
                logw (("path contained ../"));
                return FALSE;
        }
        if (strspn(s, ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-/+=") != strlen(s))
        {
                logw (("path contained suspect characters"));
                return FALSE;
        }
        return TRUE;
}

To reflect the '

-- 
"Of all tyrannies a tyranny sincerely  exercised for the good of its victims  
 may be the most  oppressive.  It may be better to live under  robber barons  
 than  under  omnipotent  moral busybodies,  The robber baron's  cruelty may  
 sometimes sleep,  his cupidity may at some point be satiated; but those who  
 torment us for own good  will torment us  without end,  for they do so with 
 the approval of their own conscience."    -   C.S. Lewis, _God in the Dock_ 
+---------------------+--------------------+----------------------------------+
|Julian Assange RSO   | PO Box 2031 BARKER | Secret Analytic Guy Union        |
|proff@suburbia.net   | VIC 3122 AUSTRALIA | finger for PGP key hash ID =     |
|proff@gnu.ai.mit.edu | FAX +61-3-98199066 | 0619737CCC143F6DEA73E27378933690 |
+---------------------+--------------------+----------------------------------+


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux