🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Charles Lindsey Thu, 21 Jun 2001 16:03
Aliased groups and nn 6.5.5
#9799
Author: Charles Lindsey
Date: Thu, 21 Jun 2001 16:03
44 lines
2919 bytes
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').

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clw.cs.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
Re: Aliased groups and nn 6.5.5
#9800
Author: 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>    *
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