Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site rochester.UUCP
Path: utzoo!decvax!harpo!seismo!rochester!lee
From: lee@rochester.UUCP (Lee Moore)
Newsgroups: net.news.b
Subject: junk**2
Message-ID: <1884@rochester.UUCP>
Date: Sun, 5-Jun-83 15:41:33 EDT
Article-I.D.: rocheste.1884
Posted: Sun Jun  5 15:41:33 1983
Date-Received: Thu, 9-Jun-83 23:41:30 EDT
Sender: lee@rocheste.UUCP
Organization: University of Rochester
Lines: 18

From: Lee.Moore
"alb" is right in that saying:
	readnews -n junk junk
will work.  The problem is more precisly that if the first group is "junk",
"control" or "test" it will be ignored.

The cause of this is in readnews.c/findex().  In that subroutine there is a
line of the form:
		if(p>string && p[-1] != '!' && strncmp(p, searchfor, ...
If "junk" is the first group, then p==string and the test fails
immediately.  The fix is to not look for the '!' if you are at the
start of the string.   This is done by:
		if( (p==string || (p>string && p[-1] != '!'))
			&& strncmp(p, searchfor, ...

= lee@rochester
      rochester!lee =