From owner-freebsd-bugs Wed Jul 15 20:00:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01882 for freebsd-bugs-outgoing; Wed, 15 Jul 1998 20:00:55 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA01874 for ; Wed, 15 Jul 1998 20:00:53 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA06226; Wed, 15 Jul 1998 20:00:01 -0700 (PDT) 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 ; 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 ; 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 Reply-To: Danny_Johnston@simn.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7294: lpr -r file fails to remove file because of bug in lpd. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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