🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83042

Re: Moving and adding cycbuff's (inn 2.5)

#83042
From: John F. Morse
Date: Mon, 10 May 2010 08:52
89 lines
4248 bytes
Julien ÉLIE wrote:

> That's a bug in cnfsheadconf.  Now fixed.  Thanks!
> The parser used by innd is not the same as the parser used by other
> independent scripts like cnfsheadconf.
>
>
> Index: cnfsheadconf.in
> ===================================================================
> --- cnfsheadconf.in     (révision 9040)
> +++ cnfsheadconf.in     (copie de travail)
> @@ -116,8 +116,17 @@
>     return 0 unless open (CONFFILE, $conffile);
>
>     while(<CONFFILE>) {
> -       $_ =~ s/^\s*(.*?)\s*$/$1/;
> -       # \x23 below is #.  Emacs perl-mode gets confused by the 
> "comment"
> +        $_ =~ s/^\s*(.*?)\s*$/$1/;
> +
> +        # Read continuation lines.
> +        while(/\\$/) {
> +            chop;
> +            chop($next = <CONFFILE>);
> +            $next =~ s/^\s*(.*?)\s*$/$1/;
> +            $_ .= $next;
> +        }
> +
> +       # \x23 below is #.  Emacs perl-mode gets confused by the 
> "comment".
>        next if($_ =~ /^\s*$/ || $_ =~ /^\x23/);
>        next if($_ =~ /^cycbuffupdate:/ || $_ =~ /^refreshinterval:/);
>
>
>
>
>> Buffer sltxt10, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   1 
>> cycles
>> Argument "000000000000000a" isn't numeric in printf at 
>> /usr/lib/news/bin/cnfsheadconf line 287, <STOR> line 82.
>>  Meta slowtext, order: 0, current: FALSE, blocksize: 4096
>>  Newest: 2010-04-03 17:45:45,   29 days,  3:11:09 ago
>>
>> It appears it doesn't understand hex. Shall we wait a little and see 
>> what happens when "16" (decimal) is used? ;-)
>
> That won't change anything.  It would parse "16" as though it was a 
> decimal
> whereas in fact it would be 0x16 = 16+6 = 22.
>
> Anyway, that's a bug.  Thanks for having spotted it!
> Now fixed.
>
> Patch here:
>    http://inn.eyrie.org/trac/changeset/9055/trunk
>
> Here is an example of use:
>
> % ./cnfsheadconf -c AUTRE2 -w
> Buffer AUTRE2, len: 1536.00 Mbytes, used: 1534.37 Mbytes (99.9%)   0 
> cycles
>  Meta AUTRE, order: 12, current: TRUE, blocksize: 512
>  Newest: 2010-05-08 12:16:19,    0 days,  0:44:04 ago
>
> Buffer [AUTRE2] => AUTRE2
> Path [/home/news/spool/cycbuffs/autrecnfs2] => 
> /home/news/spool/cycbuffs/autrecnfs2
> Length [1610612736 (0000000060000000)] => 1610612736
> Free [1608906240 (000000005fe5f600)] => 1608906240
> Meta [AUTRE] => AUTRE
> Order [12 (000000000000000c)] => 12
> Currentbuff [TRUE] => TRUE
>
>
> Just tested.  It works fine.
> And Etian can also use it to move his cyclic buffers :)
>

Both patches applied.

Appears to fix the manual cnfsheadconf results.

Thanks Julien. :-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <hs8hg0$2fk$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com> <hrle54$tce$1@n102.xanadu-bbs.net> <hs3gva$641$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hs8hg0$2fk$1@n102.xanadu-bbs.net>
Subject: Re: Moving and adding cycbuff's (inn 2.5)
Date: Mon, 10 May 2010 03:52:16 -0500
From: "John F. Morse" <john@example.invalid>
References: <9799e$4bddcc08$bda4895b$11751@news.anarqy.com> <hrko8d$bm1$1@news.trigofacile.com> <bbb46$4bdde672$bda4895b$19062@news.anarqy.com> <hrkp6e$crv$1@news.trigofacile.com> <hrkqpg$nlm$2@n102.xanadu-bbs.net> <hrkrno$fkn$1@news.trigofacile.com> <hrle54$tce$1@n102.xanadu-bbs.net> <hs3gva$641$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 89
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1273481536 2548 192.168.89.210 (10 May 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Mon, 10 May 2010 08:52:16 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
In-Reply-To: <hs3gva$641$1@news.trigofacile.com>
X-Original-Bytes: 3987