bin/99896: [patch] lpr -r flag has no effect
George Mitchell
george at m5p.com
Tue Aug 1 21:20:19 UTC 2006
The following reply was made to PR bin/99896; it has been noted by GNATS.
From: George Mitchell <george at m5p.com>
To: bug-followup at FreeBSD.org, george at m5p.com
Cc:
Subject: Re: bin/99896: [patch] lpr -r flag has no effect
Date: Tue, 01 Aug 2006 14:08:50 -0700
To complete this fix, lprm also needs a patch as follows:
--- usr.sbin/lpr/common_source/rmjob.c.orig Thu Dec 30 16:36:28 2004
+++ usr.sbin/lpr/common_source/rmjob.c Sun Jul 30 18:14:01 2006
@@ -206,7 +206,7 @@
while (getline(cfp)) {
switch (line[0]) {
case 'U': /* unlink associated files */
- if (strchr(line+1, '/') || strncmp(line+1, "df", 2))
+ if (strncmp(line+1, "df", 2))
break;
do_unlink(line+1);
}
More information about the freebsd-bugs
mailing list