From owner-cvs-all@FreeBSD.ORG Fri Dec 31 00:36:29 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DAA316A4CE; Fri, 31 Dec 2004 00:36:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1653843D45; Fri, 31 Dec 2004 00:36:29 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBV0aSaI053428; Fri, 31 Dec 2004 00:36:28 GMT (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBV0aS3N053427; Fri, 31 Dec 2004 00:36:28 GMT (envelope-from gad) Message-Id: <200412310036.iBV0aS3N053427@repoman.freebsd.org> From: Garance A Drosehn Date: Fri, 31 Dec 2004 00:36:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/lpr/common_source common.c displayq.c lp.h matchjobs.c rmjob.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 00:36:29 -0000 gad 2004-12-31 00:36:28 UTC FreeBSD src repository Modified files: usr.sbin/lpr/common_source common.c displayq.c lp.h matchjobs.c rmjob.c Log: Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm for calculating the job number for a job based on the control-file name. We might receive cf-files named by other implementations of lpr, where the job number shown by lpq would not match the job number that other commands expected for the same name. This also uses a newer algorithm for determining a job number, to avoid problems caused when a control-file is named using an IP address, instead of the hostname. This also moved the declaration if isowner() from lp.h to rmjob.c. When I went to change the parameters, I noticed that rmjob.c was the only source file which uses it. MFC after: 2 weeks Revision Changes Path 1.34 +55 -0 src/usr.sbin/lpr/common_source/common.c 1.26 +8 -7 src/usr.sbin/lpr/common_source/displayq.c 1.25 +1 -1 src/usr.sbin/lpr/common_source/lp.h 1.5 +2 -17 src/usr.sbin/lpr/common_source/matchjobs.c 1.21 +13 -12 src/usr.sbin/lpr/common_source/rmjob.c