I need to log the printed job for security reason.
The man page of 'printcap' told me that when I specify the 'if'
(input filter), it will invoke with arguments:
if [-c] -wwidth -llength -iindent -n login -h host acct-file
so I think it will be better if adding an additional argument:
I modify the usr.sbin/lpr/lpd/printjob.c as below:
Over to lpr maintainer.
I am reluctant to add any new parameters to the filters that lpd starts
up. I appreciate that you have a valuable feature you want to add, but
there are many lpd-filters which already exist, and some of them will
break if they are passed a new parameter that they are not expecting.
What I intend to do is to have lpd set a number of environment
variables before starting up the scripts. That way the values will be
there for any script which wants to look for them, but will not break
any scripts which are not expecting to be called with any new
Garance Alistair Drosehn = firstname.lastname@example.org
Senior Systems Programmer or gad@FreeBSD.org
Rensselaer Polytechnic Institute; Troy, NY; USA
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped