Rn bug patch #20 (REPOSTED)
Jonathan Biggar
jonab at sdcrdcf.UUCP
Sat Nov 17 10:05:25 AEST 1984
System: rn version 4.1
Bug #: 20
Priority: LOW
Subject: KILL files blow up because '/' not considered a metacharacter
Index: artsrch.c
Prereq: 4.1
From: ber at yquem.UUCP
Description:
When rn is processing subjects to turn them into search strings, it
translates search meta-characters into '.'. Unfortunately, '/',
while not strictly a search meta-character, is the search string
delimiter used by the 'K' command, and needs to be included in the
list of special characters. (Note that '?' does not need to be
a special character since 'K' only uses '/'.)
Repeat-By:
Find an article with a subject containing a slash. Type 'K' to put
the subject into the KILL file. Type '-' to get back to the article
and 'm' to mark it unread. Exit the newsgroup and reenter it.
Watch the fireworks as rn tries to interpret the end of the subject
as a list of commands.
Fix: To repair a KILL file with this problem, edit the KILL file, find
the offending '/', and either quote it with a backslash, or replace
it with a '.'.
From rn, say "| patch -d DIR", where DIR is your rn source directory.
Outside of rn, say "cd DIR; patch <thisarticle". If you don't have
the patch program, apply the following by hand, or get patch.
*** /tmp/,RCSt1012951 Wed Oct 31 09:57:39 1984
--- /tmp/,RCSt2012951 Wed Oct 31 09:57:44 1984
***************
*** 1,4
! /* $Header: artsrch.c,v 4.1 84/09/24 11:42:18 lwall Exp $
*
* $Log: artsrch.c,v $
* Revision 4.1 84/09/24 11:42:18 lwall
--- 1,4 -----
! /* $Header: artsrch.c,v 4.1.1.2 84/10/31 09:55:45 lwall Exp $
*
* $Log: artsrch.c,v $
* Revision 4.1.1.2 84/10/31 09:55:45 lwall
***************
*** 1,6
/* $Header: artsrch.c,v 4.1 84/09/24 11:42:18 lwall Exp $
*
* $Log: artsrch.c,v $
* Revision 4.1 84/09/24 11:42:18 lwall
* Real baseline.
*
--- 1,12 -----
/* $Header: artsrch.c,v 4.1.1.2 84/10/31 09:55:45 lwall Exp $
*
* $Log: artsrch.c,v $
+ * Revision 4.1.1.2 84/10/31 09:55:45 lwall
+ * Added / to list of search meta-characters.
+ *
+ * Revision 4.1.1.1 84/09/25 13:20:11 lwall
+ * Branch for sdcrdcf changes.
+ *
* Revision 4.1 84/09/24 11:42:18 lwall
* Real baseline.
*
***************
*** 150,156
srchahead = -1;
h[24] = '\0'; /* compensate for notesfiles */
while (*h) {
! if (index("\\[.^*$'\"",*h) != Nullch)
*h++ = '.';
else
h++;
--- 156,162 -----
srchahead = -1;
h[24] = '\0'; /* compensate for notesfiles */
while (*h) {
! if (index("/\\[.^*$'\"",*h) != Nullch)
*h++ = '.';
else
h++;
More information about the Comp.sources.bugs
mailing list