Thread View: news.software.nntp
3 messages
3 total messages
Started by Michael Grimm
Fri, 19 Feb 2010 23:44
mistake in newsfeeds: cause?
Author: Michael Grimm
Date: Fri, 19 Feb 2010 23:44
Date: Fri, 19 Feb 2010 23:44
33 lines
1803 bytes
1803 bytes
Hi - I recently added another peer to my newsfeeds, and I made a mistake as follows: ,---- | $unwantedAB=\ | @x.y,\ | @x.y.*\ | | $unwantedCD=\ | [...] | | $alwaysWITHHOLD=\ | [...] | | peer/token:*,$unwantedAB,$alwaysWITHHOLD:Ap,Tm:innfeed! `---- This led to erroneously sending of x.y.* to peer. Ok, there is that mistaken last "\" in $unwantedAB, and after removing that, everything works as expected. Now, I want to understand what happened: 1) Does that last line continuation ends in "@x.y.*<CR>"? 2) Or in "@x.y.*<$unwantedCD>" (<variable content>) 3) Something else? Regards, Michael -- to let
Re: mistake in newsfeeds: cause?
Author: Julien ÉLIE
Date: Sat, 20 Feb 2010 09:47
Date: Sat, 20 Feb 2010 09:47
43 lines
2262 bytes
2262 bytes
Hi Michael,
> | $unwantedAB=\
> | @x.y,\
> | @x.y.*\
> |
> | $unwantedCD=\
> | [...]
>
> This led to erroneously sending of x.y.* to peer. Ok, there is that
> mistaken last "\" in $unwantedAB, and after removing that, everything
> works as expected.
I once had a similar issue with:
# Comment
# $pat=@abc.*\
$pat=*,@abc.*\
@def.*
The third and fourth lines are also commented because of the second :)
> Now, I want to understand what happened:
>
> 2) Or in "@x.y.*<$unwantedCD>" (<variable content>)
Yes. See line 323 of innd/newsfeeds.c:
if (*p == '\\' && p[1] == '\n')
while (*++p && CTYPE(isspace, *p))
continue;
A space is ' ', '\t', '\r', '\n', '\v' or '\f' in C.
--
Julien ÉLIE
« -- Par Jupiter !
-- Par Toutatis !
-- Par pitié ! » (Astérix)
Re: mistake in newsfeeds: cause?
Author: Michael Grimm
Date: Sat, 20 Feb 2010 11:13
Date: Sat, 20 Feb 2010 11:13
21 lines
1793 bytes
1793 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Michael, >> Now, I want to understand what happened: >> >> 2) Or in "@x.y.*<$unwantedCD>" (<variable content>) > > Yes. See line 323 of innd/newsfeeds.c: > > if (*p == '\\' && p[1] == '\n') > while (*++p && CTYPE(isspace, *p)) > continue; > > A space is ' ', '\t', '\r', '\n', '\v' or '\f' in C. Thanks for the explanation. Now, I understand what happened ;-) Regards, Michael -- to let
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads