From Danny_Johnston@simn.com  Wed Jul 15 19:58:34 1998
Received: from simn.com (simn.com [198.60.81.242])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA01198
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jul 1998 19:58:30 -0700 (PDT)
          (envelope-from Danny_Johnston@simn.com)
Received: from mail.simn.com (mail.simn.com [10.0.0.113]) by simn.com (8.7.5/8.6.9) with ESMTP id UAA07209 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jul 1998 20:57:51 -0600 (MDT)
Received: (from danny@localhost)
	by mail.simn.com (8.8.8/8.8.8) id UAA01967;
	Wed, 15 Jul 1998 20:54:49 -0600 (MDT)
	(envelope-from danny)
Message-Id: <199807160254.UAA01967@mail.simn.com>
Date: Wed, 15 Jul 1998 20:54:49 -0600 (MDT)
From: Danny Johnston <Danny_Johnston@simn.com>
Reply-To: Danny_Johnston@simn.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: lpr -r file fails to remove file because of bug in lpd.
X-Send-Pr-Version: 3.2

>Number:         7294
>Category:       bin
>Synopsis:       lpr -r file fails to remove file because of bug in lpd.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 15 20:00:01 PDT 1998
>Closed-Date:    Sun May 23 13:07:14 PDT 1999
>Last-Modified:  Sun May 23 13:08:49 PDT 1999
>Originator:     Danny Johnston
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
Dick Simon Trucking
>Environment:

	

> Description:  There is a coding bug in lpd which causes some of the
	files in the control file to not be deleted.  Any U entry in
	the control file will be ignored if it contains a / character
	in it.

>Description:
>How-To-Repeat:

	
	lpr -r /tmp/somefile

>Fix:

	apply the following diff to /usr/src/usr.sbin/lpr/lpd/printjob.c
	502,503d501
	<                       if (strchr(line+1, '/'))
	<                               continue;
	843c841
	<               if (line[0] == 'U' && !strchr(line+1, '/'))
	---
	>               if (line[0] == 'U')

	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jmz 
State-Changed-When: Sun May 23 13:07:14 PDT 1999 
State-Changed-Why:  
Apparently this bug is fixed in the current version of lpd - I can't 
reproduce the problem. 
>Unformatted:
