Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 20:54:49 -0600 (MDT)
From:      Danny Johnston <Danny_Johnston@simn.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7294: lpr -r file fails to remove file because of bug in lpd.
Message-ID:  <199807160254.UAA01967@mail.simn.com>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 15 20:00:01 PDT 1998
>Last-Modified:
>Originator:     Danny Johnston
>Organization:
Dick Simon Trucking
>Release:        FreeBSD 2.2.6-RELEASE i386
>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')

	
	

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807160254.UAA01967>