🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79494

Re: Might this be a (future) bug that needs correction? (INN 2.4.5)

#79494
From: D. Stussy
Date: Mon, 29 Sep 2008 10:30
27 lines
2308 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:871vz3gc1l.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > Source file:  innd/art.c  (2 locations in file)
> > Feature:  logipaddr.
> > Possible bug status:  Cosmetic.  Does not impair functionality.
> >
> > Issue:  Comparison against a text literal "0.0.0.0"
> >
> > What if the news server host is IPv6 only?  Shouldn't there also be a
> > comparison against "::"?
>
> The address in this case is entirely artificial.  It's checking whether
> this channel is the local channel, whose address is set to 0.0.0.0 when
> the local channel is created, so that it does the right thing with UUCP
> feeds.
>
> It's weird code.  There should probably be some other way of checking
> for the local channel.

Interesting that some other string (e.g. "", "none", or "uucp") didn't come
to mind when this code was written.  I still think that having an IPv4
literal could cause a future problem, but as noted, it seems to affect only
the "s" variable in the newsfeeds file "W" parameter (and things that use
it, such as the logs).

Technical Details
Message-ID: <gbr19g$pe2$2@snarked.org>
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!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
References: <gbouil$jr9$1@snarked.org> <871vz3gc1l.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <gbr19g$pe2$2@snarked.org>
Subject: Re: Might this be a (future) bug that needs correction? (INN 2.4.5)
Date: Mon, 29 Sep 2008 03:30:14 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <gbouil$jr9$1@snarked.org> <871vz3gc1l.fsf@windlord.stanford.edu>
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!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 27
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-52-187.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1222707313 26050 71.118.52.187 (29 Sep 2008 16:55:13 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Mon, 29 Sep 2008 16:55:13 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1478