🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9800

Re: Aliased groups and nn 6.5.5

#9800
From: Michael T Pins
Date: Fri, 22 Jun 2001 05:01
51 lines
3402 bytes
chl@clw.cs.man.ac.uk (Charles Lindsey) writes:

>I have nn compiled with NOV (so no nnmaster) but without NNTP (so I access
>the news spool directly).

>It is possible to have, in the active file, groups of the form:

>comp.foo 000000001 0000001 =comp.bar
>comp.bar 000000005 0000001 y

>(This is CNews, but I think most servers offer that same feature). The
>effect should be that, whenever you ask to see comp.foo, what you actually
>get to see is comp.bar.

>Now poking around in the source code shows that this was all intended to
>work correctly in the days of nnmaster. There is a file active.c with
>routine read_active_file that understands all about such aliasing and does
>all the right things. But it was only ever called when setting up the
>master database (in which case I presume it then did everything correctly
>- the code certainly looks right).

>But with NOV, read_active_file never gets called. Instead, in db.c, you
>find a routine readactfile, called from open_master (NOV version), which
>never even looks at the 4th field of active. However, when you go to a new
>group, it calls lookup (also in db.c), and lookup looks in gh->master_flag
>for the M_ALIASED bit, and it it finds it, it goes off and looks for the
>real location of the group. So the feature was clearly _intended_ to work
>as before.

>Sadly, however, that _ALIASED bit is never set anywhere, though it is
>easy to see where it could have been set up, and read_active_file shows
>pretty clearly the proper way to do so.

>So is this a bug or a feature? And is the problem fixed in the forthcoming
>new release? I will gladly write the code and prepare a patch for version
>6.5.x, but I guess that part of the code for the new release will have
>been well worked over (in fact, on poking around in the code, the whole of
>the NOV implementation looks like a quick add-on job, and the underlying
>thinking is still 'nnmaster').

It's a bug, and no, it's not fixed (this is the first I've heard of it).
If you send me a patch (preferably against nn-6.6.beta, but against 6.5.6
(or even 6.5.5) is fine) I'll include it in nn-6.6 (or nn-6.6.1 if it's
doesn't arrive in time for the former).

-- 
**************************************************************************
*     Michael T Pins                 |          mtpins@nndev.org         *
*     keeper of the nn sources       |          mtpins@visi.com          *
*     ftp://ftp.nndev.org/pub        |      #include <std.disclaimer>    *
Technical Details
Message-ID: <OiAY6.195$RP4.114188@ruti.visi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!zeus.visi.com!news-out.visi.com!ruti.visi.com!mtpins
References: <GFAF9u.1Bt@clw.cs.man.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <OiAY6.195$RP4.114188@ruti.visi.com>
Subject: Re: Aliased groups and nn 6.5.5
Date: Fri, 22 Jun 2001 05:01:34 GMT
From: Michael T Pins <mtpins@nndev.org>
References: <GFAF9u.1Bt@clw.cs.man.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!zeus.visi.com!news-out.visi.com!ruti.visi.com!mtpins
Newsgroups: news.software.nn
User-Agent: nn/6.6.beta
Lines: 50
NNTP-Posting-Host: 207.174.152.234
X-Complaints-To: abuse@visi.com
X-Trace: ruti.visi.com 993186094 207.174.152.234 (Fri, 22 Jun 2001 00:01:34 CDT)
NNTP-Posting-Date: Fri, 22 Jun 2001 00:01:34 CDT