cvs commit: src/usr.sbin/lpr/common_source common.c displayq.c
lp.h matchjobs.c rmjob.c
Garance A Drosehn
gad at FreeBSD.org
Thu Dec 30 16:36:29 PST 2004
gad 2004-12-31 00:36:28 UTC
FreeBSD src repository
usr.sbin/lpr/common_source common.c displayq.c lp.h
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
More information about the cvs-src