Bug 46328 - [patch] patch for lpd(8)
Summary: [patch] patch for lpd(8)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.7-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2002-12-17 13:10 UTC by wkwu
Modified: 2017-12-31 22:37 UTC (History)
0 users

See Also:

file.diff (1.46 KB, patch)
2002-12-17 13:10 UTC, wkwu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wkwu 2002-12-17 13:10:01 UTC
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:

	-j jobname

I modify the usr.sbin/lpr/lpd/printjob.c as below:
Comment 1 Johan Karlsson freebsd_committer 2002-12-19 18:44:38 UTC
Responsible Changed
From-To: freebsd-bugs->gad

Over to lpr maintainer.
Comment 2 Garance A Drosehn freebsd_committer 2003-01-28 03:50:57 UTC
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     =      gad@gilead.netel.rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:56 UTC
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