Date: Fri, 31 Dec 2004 00:36:28 +0000 (UTC) From: Garance A Drosehn <gad@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/common_source common.c displayq.c lp.h matchjobs.c rmjob.c Message-ID: <200412310036.iBV0aS3N053427@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412310036.iBV0aS3N053427>