🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #596

Minor bug in nntp 1.5.9 w/ unofficial fix

#596
From: Robert N. Berlinger
Date: Tue, 24 Jul 1990 14:53
22 lines
1480 bytes
I recently installed nntp 1.5.9 on a Sun 3/280 running SunOS 4.1.
When receiving a post, nntpd tacks on an "Nntp-Posting-Host" header
with the hostname of the posting host.

What I was seeing was this header without the hostname.  I found that
in access.c, the external "hostname" was not being set when LOG wasn't
defined.

Line 131 of access.c which is

	(void) strcpy(hostname, host_name)

should be moved 2 lines down. (Out of the #ifdef LOG.)

Apply this fix at your own risk -- seems to work for me, but I only
spent 20 minutes finding the problem.
-- 
Robert N. Berlinger                 |Domain: naftoli@aecom.yu.edu        
Supervisor of Systems Support       |UUCP: ...uunet!aecom!naftoli
Scientific Computing Center         |CompuServe: 76067.1114@compuserve.com
Albert Einstein College of Medicine |AppleLink: D3913@applelink.apple.com
Technical Details
Message-ID: <2939@aecom.yu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!aecom!naftoli

Show Full Headers
Complete Article Headers
Message-ID: <2939@aecom.yu.edu>
Subject: Minor bug in nntp 1.5.9 w/ unofficial fix
Date: Tue, 24 Jul 1990 14:53:34 +0000
From: naftoli@aecom.yu.edu (Robert N. Berlinger)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!aecom!naftoli
Newsgroups: news.software.nntp,comp.sources.bugs
Followup-To: news.software.nntp
Organization: Albert Einstein College of Medicine, NY
Lines: 21