🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1375

XRN 6.17 patch for bad newsgroups

#1375
From: Rick L. Spickelmier
Date: Tue, 24 Mar 1992 19:30
46 lines
1930 bytes
Here is my "official" (whatever that means) patch for the bad newsgroups.
This stops the group from ever getting into the newsrc file.  However,
I will still be putting in another patch to catch a bad group once it
gets into the file (from old XRNs, news readers that allow questionable
group names, etc.).  With this patch applied, you can remove the bad
name and xrn will not try to put it back in.

				Rick

RCS file: RCS/server.c,v
retrieving revision 1.25
diff -c6 -r1.25 server.c
*** /tmp/,RCSt1a01170	Wed Mar 18 09:21:59 1992
--- server.c	Wed Mar 18 09:18:26 1992
***************
*** 478,489 ****
--- 478,497 ----
  
  	if (type[0] == '=') {
  	    /* This newsgroup doesn't exist, it's just an alias */
  	    continue;
  	}
  
+ 	/* determine if the group name is screwed up - check for jerks who
+ 	 * create group names like: alt.music.enya.puke.puke.pukeSender: 
+ 	 * - note that there is a ':' in the name of the group... */
+ 
+ 	if (strpbrk(group, ":! \n\t")) {
+ 	    continue;
+ 	}
+ 
  	if (first == 0) {
  	    first = 1;
  	}
  
  	if (!avl_lookup(NewsGroupTable, group, &ptr)) {
  


-- 
	    Rick L. Spickelmier
	    Objectivity, Inc.
	    800 El Camino Real
	    Menlo Park, CA   94025

	    ricks@objy.com, ricks@berkeley.edu
Technical Details
Message-ID: <1992Mar24.193044.909@objy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!usc!elroy.jpl.nasa.gov!ames!sgi!llustig!objy!objy27!ricks

Show Full Headers
Complete Article Headers
Message-ID: <1992Mar24.193044.909@objy.com>
Subject: XRN 6.17 patch for bad newsgroups
Date: Tue, 24 Mar 1992 19:30:44 +0000
From: ricks@objy27.objy.com (Rick L. Spickelmier)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!usc!elroy.jpl.nasa.gov!ames!sgi!llustig!objy!objy27!ricks
Newsgroups: news.software.readers
Sender: ricks@objy27 (Rick L. Spickelmier)
Reply-To: ricks@objy.com
Organization: Objectivity, Inc.
Lines: 47