summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source
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
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')
-rw-r--r--usr.sbin/lpr/common_source/lp.h1
-rw-r--r--usr.sbin/lpr/common_source/printcap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h
index a2e0bff..6faaf4d 100644
--- a/usr.sbin/lpr/common_source/lp.h
+++ b/usr.sbin/lpr/common_source/lp.h
@@ -72,6 +72,7 @@ struct printer {
long page_width; /* PW: page width */
long page_pwidth; /* PX: page width in pixels */
long page_plength; /* PY: page length in pixels */
+ long resend_copies; /* RC: resend copies to remote host */
char *restrict_grp; /* RG: restricted group */
char *remote_host; /* RM: remote machine name */
char *remote_queue; /* RP: remote printer name */
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