From owner-cvs-usrsbin Wed Oct 15 05:19:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA05965 for cvs-usrsbin-outgoing; Wed, 15 Oct 1997 05:19:25 -0700 (PDT) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA05746; Wed, 15 Oct 1997 05:17:43 -0700 (PDT) (envelope-from joerg@FreeBSD.org) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id FAA25121; Wed, 15 Oct 1997 05:16:41 -0700 (PDT) Date: Wed, 15 Oct 1997 05:16:41 -0700 (PDT) Message-Id: <199710151216.FAA25121@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/lpr/common_source displayq.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 1997/10/15 05:16:40 PDT Modified files: usr.sbin/lpr/common_source displayq.c Log: One could be surprised how much bugs can still be found here... Properlay clean the global RM variable if cgetstr() failed for it. Otherwise, a connection attempt to a remote machine was made (and a bogus result code printed) if a local printer followed a remote one in printcap, and you did a `lpq -a', since checkremote() falsely assumed the printer to be a remote one. While i was at it, removed a gratuituous newline printed in front of the remote machine's name, thus making the output more consistent (and better machine-parseable) now. Revision Changes Path 1.11 +3 -2 src/usr.sbin/lpr/common_source/displayq.c