ru
606eb8b7a4
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
ru
b1e891e706
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
phk
e372b3cf67
Use macro API to <sys/queue.h>
...
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: /sbin/md5
2000-12-30 20:56:04 +00:00
ru
522216623a
Prepare for mdoc(7)NG.
2000-12-27 15:30:30 +00:00
ume
d046c56964
IPv6 support for lpr.
...
Reviewed by: freebsd-current (no objection)
Obtained from: KAME
2000-12-16 18:06:09 +00:00
ru
c3189e713e
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
gad
04093e690c
Eliminate two compile-time warnings.
2000-11-15 06:17:52 +00:00
gad
7338dffede
Fix the '-d' option (turns on socket-debugging). Improve startup msgs.
...
PR: 17178
Submitted by: Richard <satherrl@dssrg.curtin.edu.au>
2000-11-15 06:00:42 +00:00
gad
7a6157eaf9
Make sure a few strings will have terminating null characters.
...
(most of the PR 16186 was already applied, except for these 2 lines)
PR: 16186
Submitted by: Przemyslaw Frasunek <venglin@lubi.FreeBSD.lublin.pl>
2000-11-15 04:57:22 +00:00
gad
8b40b36882
Reset the seteuid in a few obscure error situations.
2000-11-15 04:10:59 +00:00
gad
c7c2edd2e4
Just some style-related improvements.
2000-11-15 03:35:09 +00:00
gad
e176686dfe
Minor style improvements.
2000-11-14 22:08:52 +00:00
gad
e7beec2eff
Fix (style) some variable initializations.
2000-11-14 22:03:59 +00:00
gad
414e43c78b
Change 'count' to a more descriptive 'jobcount', and fix the stupid
...
comments which claim this counter is counting "files", which it is not.
2000-11-14 21:44:47 +00:00
gad
5b6d85f368
Get rid of 'exit(-1)' calls. Exit codes are limited to 8 bits under most
...
Unixes, so -1 becomes 0xFF for 2's complement and 0xFE (?) for 1's
complement.
Reviewed by: bde@FreeBSD.org
2000-11-14 21:32:52 +00:00
gad
aec6050d7d
My previous commit removed a line it wasn't supposed to. Add it back.
2000-11-13 16:21:24 +00:00
gad
7af18d597b
Replace call to mktemp() with mkstemp. Also move where that call is
...
done, so the correct directory is being checked. The mkstemp() call
is meant to create a temp file for stderrs when running filters. This
update also fixes log-file processing for remote (rm=) queues which
specify an input filter (if=). Before, filter-errs were thrown away.
Now they'll be copied to the queue's logfile (lf=).
Reviewed by: (a little) audit@FreeBSD.ORG & freebsd-print@bostonradio.org
2000-11-13 05:44:50 +00:00
ru
f9c7198049
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
gad
1c23b9fe4c
Fix 'printit()' to ignore some lines it doesn't recognize (most likely
...
coming from lprNG hosts), and print a more helpful error msg for others.
2000-11-08 00:52:11 +00:00
gad
bbf9719ec9
Cosmetic change of a structure name.
...
Turn 'struct queue { q_time, q_name }' (loosely-speaking)
into 'struct jobqueue { job_time, job_cfname }'
Reviewed by: GAWollman
2000-11-06 19:36:38 +00:00
gad
89b359e211
Get rid of a minor compile-time warning.
2000-11-06 19:19:49 +00:00
gad
1d76f798e1
Cosmetic improvements to a few recvjob-related error messages.
2000-11-06 04:37:56 +00:00
gad
0740bf26b8
Fix a format-code, thus getting rid of a compile-time warning msg.
2000-11-06 04:11:56 +00:00
gad
ea120b3d5e
Fix potential problem processing jobs from hosts with >32 character hostnames.
...
This may fix a problem reported by Juha Ylitalo <juha.o.ylitalo@nokia.com>
2000-11-05 03:24:26 +00:00
gad
d438e90b94
Fix 'lprm' processing so is more likely to work correctly when dealing
...
with long (>32 character) hostnames.
PR: 14978
Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>
2000-11-05 03:21:57 +00:00
gad
ddef9c422e
In the error-message routine for receiving a job, move the "cleanup" to be
...
after the error message is printed, because the error message may refer to
variables the "cleanup" routine will zero out.
PR: 21007
2000-11-05 02:24:20 +00:00
gad
39a203c585
This update gets it so 'lpr -r' ("remove the file after printing") will
...
try to move the file from the source to the destination (spool) directory.
If that succeeds, much time and disk-space will be saved by doing that
instead of copying the entire file only to remove the original. This
could be a big win on machines doing samba-service or CAP-based printing.
Note that this is about the fourth or fifth iteration of the patch, after
trying to address all possible security implications of the change.
PR: 16124
Reviewed by: freebsd-current or freebsd-hackers (some time ago)
2000-11-03 03:29:01 +00:00
gad
a1eb432b37
Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send)
...
in lpd. Stat.recv is useful on a printserver, as something of a network
performance-monitoring tool. Stat.send is a minimal accounting record of
sorts for jobs going to tcp/ip based printers.
Reviewed by: freebsd-print@bostonradio.org
2000-11-02 19:22:06 +00:00
gad
edbbc12a19
Change 'lpr' so -C (class) information is included in the control file
...
even for jobs or queues which will not print header (separator) pages.
Submitted by: "Steve O'Hara-Smith" <steveo@eircom.net>
2000-11-01 01:48:06 +00:00
gad
a66de2a428
Make the standard 'lpq' output a little more informative when listing jobs
...
which have long names. Instead of just listing '...', try to list some
reasonable subset of the name (with a "..." to indicate something missing).
Reviewed by: freebsd-print@bostonradio.org (only a little review)
2000-10-31 20:11:30 +00:00
gad
c08c6b6976
Fix 'lpq' so it can correctly display jobs which come from hosts using
...
'lprNG' (which writes control-lines in a different order than our lpr).
Reviewed by: freebsd-print@bostonradio.org
2000-10-31 19:57:07 +00:00
gad
247b0ae936
Change my email on MAINTAINER from an RPI address to my FreeBSD address.
2000-10-30 01:09:32 +00:00
wollman
e575947f65
Fix cosmetic error in rmjob message.
...
PR: 21006
2000-09-27 19:23:15 +00:00
wollman
101d0d046c
Set SO_REUSEADDR so that lpd can start while old lpd connections are still
...
winding down (or timing out). Also, be slightly more informative in
mcleanup() about why lpd is exiting.
PR: 21595
2000-09-27 19:03:05 +00:00
alfred
709440e9c0
the code assumes that getgroups() always returns NGROUPS groups, however
...
that is not true. Instead of looping NGROUPS times, get the return value
from getgroups() and loop over the return that many times.
Noticed by: David A. Holland <dholland@eecs.harvard.edu>
2000-08-23 23:36:32 +00:00
wollman
0bb256a8b9
Admin some amount of responsibility for the current state of lpr/lpd.
...
Also add Garance Drosihn who has been doing a great deal of work on
print systems.
2000-07-15 02:43:02 +00:00
mph
f025848fad
Quit on EOF from terminal instead of redisplaying the prompt.
2000-06-30 20:05:21 +00:00
wollman
848ed43fb5
Fix description of -i' and
-w' options.
...
Fix spelling of `TeX'.
Move historical formats into a separate list, to make thier cruftiness
clear.
2000-06-27 20:21:56 +00:00
sheldonh
fdb547347d
Allow Nm to expand gracefully instead of hard-coding an argument.
2000-06-22 10:00:19 +00:00
wollman
629b480fe8
Allow those of us who have to print through LPRng spoolers to send
...
spooler options using `Z' control-file lines and the `-Z' flag.
2000-06-21 20:20:26 +00:00
jake
5e208b0c18
Back out the previous change to the queue(3) interface.
...
It was not discussed and should probably not happen.
Requested by: msmith and others
2000-05-26 02:09:24 +00:00
mpp
2b396f2a9d
Remove the lpr/runqueue directory and associated files.
...
These are not used anymore and are outdated and only cause
confusion (I just committed a fix to one of these files within
the last hour, thinking it was still valid).
2000-05-24 13:05:50 +00:00
mpp
5b31fc3665
Re-implement my fix from rev 1.6 (same rev for both files being committed)
...
that was lost during the lite-2 merge. From the original commit message:
Initialize the group list so that any filter programs that are
run by lpd are not run with root's groups.
2000-05-24 11:38:50 +00:00
jake
1d685644e0
Change the way that the queue(3) structures are declared; don't assume that
...
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
2000-05-23 20:41:01 +00:00
imp
54a801b5f8
This appears to have been repo-copied to lpd a while ago and never
...
deleted here. Diff shows there is only one change to this file, which
matches the repo histories.
2000-05-09 19:41:18 +00:00
wollman
32477c77e8
Print files submitted at the same instant in deterministic order.
...
PR: 18361
Submitted by: Garance A Drosehn <gad@freefour.acs.rpi.edu>
2000-05-03 14:56:20 +00:00
sheldonh
d960e99e10
Add -p option to prevent lpd(8) from opening a listening socket.
...
PR: 17384
Submitted by: Niels Endres <niels@b5.nu>
2000-03-29 11:15:54 +00:00
sheldonh
e03801bd3c
Remove blanks lines, replacing them with Pp macros where appropriate.
2000-03-08 10:13:50 +00:00
sheldonh
9264eb2d8a
Add missing description for the dummy -o option.
2000-03-08 10:06:27 +00:00
sheldonh
51dbefde54
Add a dummy -s option for SUSv2 compatibility.
...
PR: 17256
Reported by: Brooks Davis <brooks@one-eyed-alien.net>
Approved by: jkh (release engineer)
2000-03-08 10:02:11 +00:00