πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83905

Re: Maybe a bug in X-Trace nnrpd generation (INN 2.5.2)

#83905
From: Russ Allbery
Date: Mon, 28 Feb 2011 18:19
25 lines
2233 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> INN does not force "stdin".  The system gives the "stdin" value for the
> host.  Is "stdin" used by every platform INN runs on?

I think the stdin comes from nnrpd's StartConnection() here:

    /* Get the peer's name. */
    length = sizeof(ssc);
    if (getpeername(STDIN_FILENO, sac, &length) < 0) {
        if (!isatty(STDIN_FILENO)) {
            sysnotice("? can't getpeername");
            Reply("%d Can't get your name.  Goodbye!\r\n", NNTP_ERR_ACCESS);
            ExitWithStats(1, true);
        }
        strlcpy(Client.host, "stdin", sizeof(Client.host));

so we're the ones who are introducing the word.  I'm not sure what to do
instead, although 127.0.0.1 or ::1 both seem reasonable to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <874o7onhsm.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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news.kjsl.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <ikfnh8$g2c$1@speranza.aioe.org> <ikfpan$s8e$1@news.trigofacile.com> <ikfs40$svf$1@speranza.aioe.org> <8t1cj4FifjU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <874o7onhsm.fsf@windlord.stanford.edu>
Subject: Re: Maybe a bug in X-Trace nnrpd generation (INN 2.5.2)
Date: Mon, 28 Feb 2011 10:19:21 -0800
From: Russ Allbery <rra@stanford.edu>
References: <ikfnh8$g2c$1@speranza.aioe.org> <ikfpan$s8e$1@news.trigofacile.com> <ikfs40$svf$1@speranza.aioe.org> <8t1cj4FifjU1@mid.individual.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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news.kjsl.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 25
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet-its.stanford.edu 1298917161 22461 171.67.225.134 (28 Feb 2011
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Cancel-Lock: sha1:gC4JWoJs9bg1cBnrh2mRTPFtnq0=
X-Original-Bytes: 1945