🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.notes
Article #61

newsinput.c bug & fix

#61
From: rct
Date: Tue, 03 Feb 1987 15:58
28 lines
1813 bytes
Yet another bug in the newsinput program has been found.  This one
was responsible for a great many "Orphaned Responses" not getting
adopted, and the fix is simple.

Since I applied this fix to a version of newsinput.c that is different
from the one supplied with the notes version 1.7 distribution, you should
consider yourself warned that the line numbers will probably be different.
To aid you in finding the line, it is found in the bnewsgen() function
within newsinput.c.  Note the missing '&' in the bad version.


601c601
< 	copyauth (&auth, note2.n_auth);			/* fill in author */
---
> 	copyauth (&auth, &note2.n_auth);		/* fill in author */

I will be happy to supply the full source to the version of newsinput.c
that I'm running upon request.  It contains numerous bug fixes and is
capable of parsing a few of the non-standard but legal news message IDs
that are probably generated by mailer programs (grrrrrrr).  There are
several good philosophical arguments as far as enforcing a standard
message ID format, i.e., <XXXXX@site.domain.domain.etc.> where all of
the X's are digits.  The newsinput program has great problems digesting
message IDs where all the X's are not digits.

--Bob Tracy	AT&T Network & Data Systems	Oklahoma City Works
{most AT&T sites}!occrsh!rct
Technical Details
Message-ID: <147700001@occrsh.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!sundc!nears!occrsh!occrsh.UUCP!authorplaceholder

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!sundc!nears!occrsh!occrsh.UUCP!authorplaceholder
From: rct@occrsh.UUCP
Newsgroups: news.software.notes
Subject: newsinput.c bug & fix
Message-ID: <147700001@occrsh.UUCP>
Date: Tue, 3-Feb-87 10:58:00 EST
Article-I.D.: occrsh.147700001
Posted: Tue Feb  3 10:58:00 1987
Date-Received: Sat, 7-Feb-87 04:37:53 EST
Lines: 28
Nf-ID: #N:occrsh.UUCP:147700001:000:1280
Nf-From: occrsh.UUCP!rct    Feb  3 09:58:00 1987