summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpd
Commit message (Collapse)AuthorAgeFilesLines
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-071-4/+3
| | | | | | | | | | 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.
* Properly initialize the printer struct.wollman1998-01-201-1/+2
| | | | PR: bin/5519
* Fixed DPADD.bde1997-12-161-1/+2
|
* Mega lpd/lpd upgrade, part I:wollman1997-12-027-471/+480
| | | | | | | | | | | | | | | - 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-071-0/+2
| | | | | When setting an alarm that didn't trigger, i gotta clear it again before going on. Hmpf!
* Improve my hack from rev 1.6 of displayq.c, and make the TCPjoerg1997-10-141-0/+17
| | | | | | | | 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-061-4/+6
| | | | | | | Theo de Raadt. Likely 2.2.5R candidate. Obtained from: OpenBSD
* Use err(3). Add usage(). Various fixes in man pages.charnier1997-09-243-9/+18
|
* common_source: staticize private version of warn() so to not conflictjoerg1997-08-232-24/+53
| | | | | | | | | 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-292-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-292-38/+59
| | | | | 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-232-6/+6
| | | | | | 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-231-6/+11
| | | | | | | | | | | | 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>
* Increase size of tmp hostname buffer.phk1997-07-161-2/+2
| | | | | | PR: 3889 Reviewed by: phk Submitted by: Yujiro MIYATA <miyata@bioele.nuee.nagoya-u.ac.jp>
* Check for duplicate spool dirs.brian1997-05-171-1/+30
| | | | Submitted by: eivind
* Support input and output filters with remote printing.brian1997-04-121-16/+173
| | | | | Output filters are executed on a per-file basis as it's necessary to supply the file size to the "other side".
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* lpc/cmds.c:imp1996-10-273-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From NetBSD via OpenBSD to fix NetBSD PR #506 More descriptive message for printer status (OpenBSD: 1.2) Various warnings cleaned up (OpenBSD: 1.4) lpc/lpc.c: Various warnings cleaned up (OpenBSD: 1.3) lpd/lpd.c: Remove trailing blank lines (OpenBSD: 1.2) Potential umask problem with creating /dev/printer (OpenBSD: 1.4 and 1.5) Ftp bounce attack (untested on FreeBSD) (OpenBSD: 1.6, 1.8, 1.9) Fencepost in strncpy (OpenBSD: 1.6) lpd/printjob.c: Fix from freebsd for waiting for an exiting filter, that appears not in the FreeBSD CVS tree. (OpenBSD: 1.6) lpd/recvjob.c: Buffer overflow protection: use strncpy rather than strcpy. (OpenBSD: 1.3) lpr/lpr.c: NetBSD change of return type for main() (OpenBSD: 1.2) Restrict time running as root (OpenBSD: 1.7) Use getcwd rather than getwd (from NetBSD) Use snprintf rather than sprintf (OpenBSD: 1.8) Minor tweak to end of loop and buffer overflow sanity. card() overflow already in FreeBSD (OpenBSD: 1.9) lptest/lptest.c: void -> int return type of main, from NetBSD via OpenBSD (OpenBSD: 1.2) pac/pac.c: void -> int return type of main, from NetBSD via OpenBSD (OpenBSD: 1.3) Obtained from: OpenBSD
* Close files up to getdtablesize(), instead of up to NOFILE.bde1996-09-291-5/+9
| | | | lpd was one of 3 programs in /usr/src that (mis)used NOFILE.
* People ask in Usenet, how to configure remoteprinting successfullywosch1996-06-011-0/+1
| | | | | | | having a hosts.lpd(5) manpage and some references to it from within lpd(8) might help here. Close PR docs/1277 Submitted by: andreas@knobel.gun.de (Andreas Klemm)
* Cleanup.joerg1996-05-095-4/+6
| | | | | | | | | The removed files are no longer needed, they are actually labelled as ``Use only if you are not 4.4BSD''. (Yeah, the ol' crufty printcap.c is really gone!) Properly declare all external objects in files ending in .h, as opposed to embed them into files ending in .c.
* Pull a bunch of fixes from the 4.4BSD-Lite2 branch. It's reallyjoerg1996-05-053-87/+175
| | | | | | | | | | | | surprising how many trivial errors there have been... :-) Some more cleanup is needed, but i'd like to separate the Lite2 changes from other work, that's why this goes into a different commit. People with serial printers should see whether i have broken the stty- style printcap options (i hope not). Inspired by: Sergey Shkonda <serg@bcs1.bcs.zaporizhzhe.ua>
* This commit was generated by cvs2svn to compensate for changes in r15637,joerg1996-05-051-1/+36
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor-branch import of the 4.4BSD-Lite2 code for lpr. There arejoerg1996-05-053-65/+216
| | | | | | | | | | | | | | | | several bugfixes in it that are worth considering. Don't be alarmed about the import conflicts... Obtained from: 4.4BSD-Lite2
* | Makefile: Add new modes.c file to list of objects.sef1996-04-033-29/+249
| | | | | | | | | | | | | | | | | | | | printjob.c: Use termios instead of sgtty structs and ioctls; remove support for fs/fc/xs/xc capabilities, and replace them with the ms capability (stty-like words, instead of octal bit patterns). modes.c: Modified from stty's file, parses comma-seperated list of tty modes (e.g., "cs8,-paren,-opost"). Reviewed by: rgrimes, joerg
* | Correct a bunch of man page cross references and generallympp1996-02-111-3/+3
| | | | | | | | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* | Mention a bug in lpd that causes a core dump if a request is made forjoerg1996-01-071-0/+10
| | | | | | | | | | | | a file format where no filter is assigned. Pointed out by: Richard_Pontefract@vos.stratus.com
* | Initialize the group list so that any filter programs that arempp1995-09-021-1/+9
| | | | | | | | run by lpd are not run with root's groups.
* | The other day someone brought me an old Apple Laserwriter II with a serialwpaul1995-07-311-0/+2
| | | | | | | | | | | | | | interface set at 57600 baud, and I found out the hard way that lpd doesn't know about speeds greater than 38400, even though <sys/ttydev.h> also permits 57600 and 115200 baud. Fix this by adding B57600 and B115200 to the 'bauds' table. (The Apple printer worked properly once I did this, BTW. :)
* | Remove trailing whitespace.rgrimes1995-05-303-12/+12
| |
* | Close PR:jkh1995-04-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | >Number: 368 >Category: bin >Synopsis: Lpd doesn't log errors after failed exec >Description: If an exec done by lpd fails, nothing is sent to the system log indicating what went wrong. This is because lpd closes all of the file descriptors before doing the exec, thus closing the syslog file descriptor in the process. [Fix applied] Submitted by: pritc003@maroon.tc.umn.edu
* | Use the "-F" option to /bin/pr now that we have it (thanks to Posix).joerg1995-01-081-2/+3
| | | | | | | | | | | | 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.)
* | Submitted by: Ollivier ROBERTats1995-01-041-1/+1
| | | | | | | | | | Wrong description where the printer socket lives. Changed from /dev/printer to /var/run/printer. Bug report submitted by Ollivier ROBERT.
* | Get rid of update. Make man page installation work with our schemewollman1994-08-051-1/+1
|/ | | | (and rename a few in the process).
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-267-0/+3607
OpenPOWER on IntegriCloud