From owner-freebsd-bugs Mon Dec 2 20:00:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA05363 for bugs-outgoing; Mon, 2 Dec 1996 20:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA05339; Mon, 2 Dec 1996 20:00:03 -0800 (PST) Resent-Date: Mon, 2 Dec 1996 20:00:03 -0800 (PST) Resent-Message-Id: <199612030400.UAA05339@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, ted@emerald.plymouth.edu Received: from emerald.plymouth.edu (emerald.plymouth.edu [158.136.75.151]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA05167 for ; Mon, 2 Dec 1996 19:55:46 -0800 (PST) Received: (from ted@localhost) by emerald.plymouth.edu (8.8.2/8.8.2) id WAA06522; Mon, 2 Dec 1996 22:51:49 -0500 (EST) Message-Id: <199612030351.WAA06522@emerald.plymouth.edu> Date: Mon, 2 Dec 1996 22:51:49 -0500 (EST) From: Ted Wisniewski Reply-To: ted@emerald.plymouth.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2139: /usr/sbin/lpc cannot clean queues Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2139 >Category: bin >Synopsis: /usr/sbin/lpc cannot clean queues >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 2 20:00:01 PST 1996 >Last-Modified: >Originator: Ted Wisniewski >Organization: Plymouth State College >Release: FreeBSD 2.2-ALPHA i386 >Environment: >Description: /usr/sbin/lpc cannot be used to clean printer queues due to a logic error. >How-To-Repeat: Stop a queue (lpc stop queuename) send stuff to it (lpr -Pqueuname filename) Clean the queue (lpc clean queuename) Stuff is not deleted. >Fix: Apply patch below to usr.sbin/lpr/lpc/cmds.c *** usr.sbin/lpr/lpc/cmds.c.ori Mon Dec 2 22:45:35 1996 --- usr.sbin/lpr/lpc/cmds.c Mon Dec 2 22:45:53 1996 *************** *** 327,333 **** i++; n++; } ! if (n == 0) { strcpy(lp, cp); unlinkf(line); } --- 327,333 ---- i++; n++; } ! if (n != 0) { strcpy(lp, cp); unlinkf(line); } >Audit-Trail: >Unformatted: