naftoli@aecom.yu.edu (Robert N. Berlinger) (07/24/90)
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