summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-193-6/+3
|
* Fix additional warnings. Remove -Werror, since some people have complainedwollman1998-09-1117-38/+49
| | | | | | | about it. PR: 7886 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> (partially)
* Fix ``lp=port@machine'' syntax and mention it in printcap(5).brian1998-08-212-3/+14
|
* Remove -Werror from CFLAGS on i386 because with -nostdinc gcc spitsjb1998-06-113-14/+3
| | | | | warnings from unused static inline functions in headers if you happen to set CFLAGS without -O.
* Spelling fixes.phk1998-06-101-2/+2
| | | | | | PR: 6903 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* The printf type checking in gcc wants %qd to be a long long, so addjb1998-05-131-2/+2
| | | | a cast in case off_t is not a long long (as on alpha).
* Make -Werror i386 specific because -nostinc on alpha spits warningsjb1998-05-133-6/+17
| | | | for unused static inline functions in header files.
* Make ``-h'' follow the manpage, and suppress the burst page reguardless ofobrien1998-04-171-3/+3
| | | | the number of ``-h'' given.
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-232-4/+4
|
* Cast an argument to int for a printf field width the way that gccjb1998-03-221-2/+2
| | | | | prefers it. This source is compiled with -Werror so the slightest warning is enough to ruin my day.
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-0710-36/+35
| | | | | | | | | | libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong. Don't override defaults when the defaults are correct.
* Add DESTDIR to afterinstallache1998-02-241-1/+1
| | | | Submitted by: jhay
* Oops, back out DESTDIR addition, handled automatically by bsd.prog.mkache1998-02-241-1/+1
|
* Add missing DESTDIRache1998-02-231-1/+1
|
* Install printcap.5 from here.wollman1998-02-041-1/+2
|
* Add comment describing settingsache1998-02-041-3/+10
| | | | Use 66 lines on the page
* Add Russian printer filters, mandatory because hardware code page 866ache1998-02-045-2/+273
| | | | is different with KOI8-R
* Properly initialize the printer struct.wollman1998-01-201-1/+2
| | | | PR: bin/5519
* Fix top-of-form bogon.wollman1997-12-271-2/+2
|
* Add -Wno-unused so that ``make world'' can complete successfully.wollman1997-12-172-4/+4
| | | | | | GCC suppresses the warning for ``standard'' header files, but since the headers do not come from the ``standard'' place in a ``make world'', GCC doesn't get it.
* Fixed DPADD.bde1997-12-167-7/+14
|
* Fix incorrect format string in call to errx().jdp1997-12-061-2/+2
|
* Add missing argument to warn() call.jdp1997-12-061-2/+2
|
* Document the new long names for printcap capabilities.wollman1997-12-021-1/+44
|
* Mega lpd/lpd upgrade, part I:wollman1997-12-0243-1921/+2896
| | | | | | | | | | | | | | | - Get rid of a lot of the static variables which were shared by many routines and programs in the suite. - Create an abstract interface to the printcap database, so that other retrieval and iteration mechanisms could be developed (e.g., YP, Hesiod, or automatic retrieval from a trusted server). - Give each capability a human-readable name in addition to the historic two-character one. - Otherwise generally clean up a lot of dark corners. Many still remain. - When submitting jobs, use the official login name record (from getlogin()) if there is one, rather than reverse-mapping the uid. More to come...
* Argl! Who's got the pointy hat these days? Hand it over to me, ASAP!joerg1997-11-073-0/+5
| | | | | When setting an alarm that didn't trigger, i gotta clear it again before going on. Hmpf!
* One could be surprised how much bugs can still be found here...joerg1997-10-151-2/+3
| | | | | | | | | | | | Properlay clean the global RM variable if cgetstr() failed for it. Otherwise, a connection attempt to a remote machine was made (and a bogus result code printed) if a local printer followed a remote one in printcap, and you did a `lpq -a', since checkremote() falsely assumed the printer to be a remote one. While i was at it, removed a gratuituous newline printed in front of the remote machine's name, thus making the output more consistent (and better machine-parseable) now.
* Improve my hack from rev 1.6 of displayq.c, and make the TCPjoerg1997-10-148-3/+56
| | | | | | | | connection timeout controllable by a new printcap(5) capability named `ct' (connectiom timeout), defaulting to 120 seconds (which is the default TCP connection timeout). Would anybody see a problem with merging all this into RELENG_2_2?
* Be more paranoid about unlinking files. From mhpower@MIT.EDU by way ofimp1997-10-062-8/+12
| | | | | | | Theo de Raadt. Likely 2.2.5R candidate. Obtained from: OpenBSD
* Use err(3). Add usage(). Various fixes in man pages.charnier1997-09-2417-101/+126
|
* environmental -> environment.charnier1997-09-181-2/+2
|
* common_source: staticize private version of warn() so to not conflictjoerg1997-08-234-26/+55
| | | | | | | | | with libc's version. lpd: use getopt(3), err(3), add usage(), allow specification of a port # on the command line as the documentation suggested for more than 10 years. PR: docs/3290
* Two minor, pedantic fixes from bde for my last pedantic fixes, plusimp1997-07-2910-33/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the following from recent OpenBSD changes. These changes (and all I've made) should be merged back into 2.2 when they are vetted in -current. common.c: OpenBSD 1.7: mickey: #if __STDC__ --> #ifdef __STDC__ displayq.c: OpenBSD 1.8: deraadt: 1 byte oflows; millert rmjob.c: OpenBSD 1.8: deraadt: 1 byte oflows; millert cmds.c: OpenBSD 1.9: grr: restore traditional "all" keyword option - see lpc(8) [[ This makes lpc status all work again -- imp ]] printjob.c: OpenBSD 1.17: deraadt: use sendmail -t OpenBSD 1.16: mickey: #if __STDC__ --> #ifdef __STDC__ OpenBSD 1.15: deraadt: 1 byte oflow; Don.Lewis@tsc.tdk.com recvjob.c: OpenBSD 1.11: mickey: #if __STDC__ --> #ifdef __STDC__ lpr.c: OpenBSD 1.19: mickey: #if __STDC__ --> #ifdef __STDC__ Obtained from: OpenBSD
* Fix boatloads of buffer overflows from the OpenBSD tree.imp1997-07-299-100/+151
| | | | | Be pedantic about always using sizeof(blah) vs sizeof (blah) or sizeof blah. Obtained from:OpenBSD
* index -> strchr and rindex -> strrchr to reduce the number of gratuitousimp1997-07-237-19/+19
| | | | | | diffes with NetBSD/OpenBSD. These changes seem to predate the NetBSD/OpenBSD split, so it is hard to give proper credit for them. Obtained from: OpenBSD.
* Use setuid/seteuid around dangerous operations. Also a few bufferimp1997-07-2311-50/+199
| | | | | | | | | | | | overflow patches that were "near" to where these operations are taking place. The buffer overflows are from OpenBSD. The setuid/seteuid patches are from NetBSD by way of OpenBSD (they changed them a little), at least from my read of the tree. This is the first of a series of OpenBSD lpr/et al merges. It (and them) should be merged back into 2.2 and/or 2.1 (if requested) branches when they have been shaken out in -current. Obtained from: OpenBSD
* Output name of duplicate spool dir.brian1997-07-211-1/+2
| | | | Submitted by: Wayne Scott <wscott@ichips.intel.com>
* Add code to make sure that we don't overflow the buffer that we copyimp1997-07-181-1/+4
| | | | | | | | | the hostname into. In theory the bind library should do this, but in practice the limites between system defines and bind defines make an attack using this vector possible. These patches have been in use on my systems for three months now, so I am fairly confident about them. I plan on commiting this to 2.2 and 2.1 in the near future, as well as many other patches of this nature.
* Fix a problem where remote files could be removed by exploiting raceimp1997-07-181-0/+2
| | | | | conditions similar to those reported in CERT's CA-91:10a advisory. Obtained from: Hiroshi NAKANO <nakano@rins.ryukoku.ac.jp> by way of CERT.
* Increase size of tmp hostname buffer.phk1997-07-162-4/+4
| | | | | | PR: 3889 Reviewed by: phk Submitted by: Yujiro MIYATA <miyata@bioele.nuee.nagoya-u.ac.jp>
* Fixed buffer overflow.dima1997-07-081-5/+5
| | | | Reviewed by: Warner
* Imply a 10-second connection timeout when querying remote queues, tojoerg1997-06-231-0/+13
| | | | | prevent lpq from hanging indefinately (well, 10 minutes are for sure counting as `indefinately' in this case).
* Fix a typo, so the -a option will by documented in the synopsis.joerg1997-06-211-1/+1
|
* Check for duplicate spool dirs.brian1997-05-171-1/+30
| | | | Submitted by: eivind
* Don't output extraneous tabbrian1997-05-131-3/+7
| | | | Submitted by: Garance A Drosehn <gad@eclipse.its.rpi.edu>
* Don't drop into the troff args after parsing -#.brian1997-05-131-1/+2
| | | | Submitted by: Garance A Drosehn <gad@eclipse.its.rpi.edu>
* Kill a stale .pq line.joerg1997-05-081-2/+1
|
* Support input and output filters with remote printing.brian1997-04-123-33/+374
| | | | | Output filters are executed on a per-file basis as it's necessary to supply the file size to the "other side".
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-312-3/+3
| | | | posix standard on the topic.
* Fix an off by one error when determing the default job name formpp1997-02-261-4/+4
| | | | | | | | the banner page. Closes PR# 1986. Submitted by: Mark Valentine <mark@linus.demon.co.uk>
OpenPOWER on IntegriCloud