]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm
authorgad <gad@FreeBSD.org>
Fri, 31 Dec 2004 00:36:28 +0000 (00:36 +0000)
committergad <gad@FreeBSD.org>
Fri, 31 Dec 2004 00:36:28 +0000 (00:36 +0000)
commit6a6737d3e1d2c73186dbd83388444f40910039b4
tree5a13f7ae5fa47be23af1a8eeccb26ef7de7d4fb5
parente1d1aaa012c9d5a1a1ab782daafff83fbba24197
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
usr.sbin/lpr/common_source/common.c
usr.sbin/lpr/common_source/displayq.c
usr.sbin/lpr/common_source/lp.h
usr.sbin/lpr/common_source/matchjobs.c
usr.sbin/lpr/common_source/rmjob.c