Thread View: news.software.readers
1 messages
1 total messages
Started by Rick L. Spickelmier
Tue, 24 Mar 1992 19:30
XRN 6.17 patch for bad newsgroups
Author: Rick L. Spickelmier
Date: Tue, 24 Mar 1992 19:30
Date: Tue, 24 Mar 1992 19:30
46 lines
1930 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads