Xref: utzoo news.software.nntp:724 comp.sources.bugs:2453 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!aecom!naftoli From: naftoli@aecom.yu.edu (Robert N. Berlinger) Newsgroups: news.software.nntp,comp.sources.bugs Subject: Minor bug in nntp 1.5.9 w/ unofficial fix Message-ID: <2939@aecom.yu.edu> Date: 24 Jul 90 14:53:34 GMT Followup-To: news.software.nntp Organization: Albert Einstein College of Medicine, NY Lines: 21 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