summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/printcap.c
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-04-23 00:06:10 +0000
committergad <gad@FreeBSD.org>2002-04-23 00:06:10 +0000
commit45f3bdde744be43fd191ee929a8c5a7cec0b0856 (patch)
tree82ccb92a46cd5cb4524779c4ff8a1c2dd3cfaa9f /usr.sbin/lpr/common_source/printcap.c
parentc141c42f1c29ac0cccbf419c008c2829aaed2bdf (diff)
downloadFreeBSD-src-45f3bdde744be43fd191ee929a8c5a7cec0b0856.zip
FreeBSD-src-45f3bdde744be43fd191ee929a8c5a7cec0b0856.tar.gz
Implement new printcap option of "rc" aka "remote.resend_copies".
This is a boolean option, and if it is specified in a print queue for a remote host, it causes lpd to resend the data file for each copy the user requested on 'lpr -#n'. This is useful for network printers which accept lpd-style jobs, but which ignore the control file (and thus they ignore any request for multiple copies). PR: 25635 Reviewed by: short review on freebsd-audit MFC after: 6 days
Diffstat (limited to 'usr.sbin/lpr/common_source/printcap.c')
-rw-r--r--usr.sbin/lpr/common_source/printcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/lpr/common_source/printcap.c b/usr.sbin/lpr/common_source/printcap.c
index d70c5b1..d949893 100644
--- a/usr.sbin/lpr/common_source/printcap.c
+++ b/usr.sbin/lpr/common_source/printcap.c
@@ -257,6 +257,7 @@ getprintcap_int(char *bp, struct printer *pp)
&pp->status_file));
CHK(capdb_getaltstr(bp, "tr", "job.trailer", 0, &pp->trailer));
+ pp->resend_copies = capdb_getaltlog(bp, "rc", "remote.resend_copies");
pp->restricted = capdb_getaltlog(bp, "rs", "daemon.restricted");
pp->short_banner = capdb_getaltlog(bp, "sb", "banner.short");
pp->no_copies = capdb_getaltlog(bp, "sc", "job.no_copies");
OpenPOWER on IntegriCloud