summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-01-08 18:01:11 +0000
committerjoerg <joerg@FreeBSD.org>1995-01-08 18:01:11 +0000
commit3fcd556a98576d6fb2e33185eb175bae49b129e8 (patch)
tree848500d8e44c058bba354dabad4640cd7e66dbee
parentf927c40d96b406300eff7194b4eb9a9fce494523 (diff)
downloadFreeBSD-src-3fcd556a98576d6fb2e33185eb175bae49b129e8.zip
FreeBSD-src-3fcd556a98576d6fb2e33185eb175bae49b129e8.tar.gz
Use the "-F" option to /bin/pr now that we have it (thanks to Posix).
This helps for printers that tend to get out of sync. (For the cautious folks: we used to have it in 1.1.5, too. But GNU pr used "-f" for it.)
-rw-r--r--usr.sbin/lpr/lpd/printjob.c5
-rw-r--r--usr.sbin/lpr/runqueue/printjob.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index 87c9352..889741e 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -529,7 +529,8 @@ print(format, file)
av[2] = length;
av[3] = "-h";
av[4] = *title ? title : " ";
- av[5] = 0;
+ av[5] = "-F";
+ av[6] = 0;
fo = ofd;
goto start;
}
@@ -540,7 +541,7 @@ print(format, file)
for (n = 3; n < NOFILE; n++)
(void) close(n);
execl(_PATH_PR, "pr", width, length,
- "-h", *title ? title : " ", 0);
+ "-h", *title ? title : " ", "-F", 0);
syslog(LOG_ERR, "cannot execl %s", _PATH_PR);
exit(2);
}
diff --git a/usr.sbin/lpr/runqueue/printjob.c b/usr.sbin/lpr/runqueue/printjob.c
index 87c9352..889741e 100644
--- a/usr.sbin/lpr/runqueue/printjob.c
+++ b/usr.sbin/lpr/runqueue/printjob.c
@@ -529,7 +529,8 @@ print(format, file)
av[2] = length;
av[3] = "-h";
av[4] = *title ? title : " ";
- av[5] = 0;
+ av[5] = "-F";
+ av[6] = 0;
fo = ofd;
goto start;
}
@@ -540,7 +541,7 @@ print(format, file)
for (n = 3; n < NOFILE; n++)
(void) close(n);
execl(_PATH_PR, "pr", width, length,
- "-h", *title ? title : " ", 0);
+ "-h", *title ? title : " ", "-F", 0);
syslog(LOG_ERR, "cannot execl %s", _PATH_PR);
exit(2);
}
OpenPOWER on IntegriCloud