aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/common_source/recvjob.c
Commit message (Collapse)AuthorAgeFilesLines
* This appears to have been repo-copied to lpd a while ago and neverWarner Losh2000-05-091-375/+0
| | | | | | | | deleted here. Diff shows there is only one change to this file, which matches the repo histories. Notes: svn path=/head/; revision=60282
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Mega lpd/lpd upgrade, part I:Garrett Wollman1997-12-021-25/+28
| | | | | | | | | | | | | | | | | | - 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... Notes: svn path=/head/; revision=31492
* Be more paranoid about unlinking files. From mhpower@MIT.EDU by way ofWarner Losh1997-10-061-4/+6
| | | | | | | | | | Theo de Raadt. Likely 2.2.5R candidate. Obtained from: OpenBSD Notes: svn path=/head/; revision=30143
* Use err(3). Add usage(). Various fixes in man pages.Philippe Charnier1997-09-241-4/+8
| | | | Notes: svn path=/head/; revision=29780
* Two minor, pedantic fixes from bde for my last pedantic fixes, plusWarner Losh1997-07-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=27757
* Fix boatloads of buffer overflows from the OpenBSD tree.Warner Losh1997-07-291-10/+17
| | | | | | | | Be pedantic about always using sizeof(blah) vs sizeof (blah) or sizeof blah. Obtained from:OpenBSD Notes: svn path=/head/; revision=27748
* index -> strchr and rindex -> strrchr to reduce the number of gratuitousWarner Losh1997-07-231-1/+1
| | | | | | | | | 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. Notes: svn path=/head/; revision=27635
* Increase size of tmp hostname buffer.Poul-Henning Kamp1997-07-161-2/+2
| | | | | | | | | PR: 3889 Reviewed by: phk Submitted by: Yujiro MIYATA <miyata@bioele.nuee.nagoya-u.ac.jp> Notes: svn path=/head/; revision=27448
* lpc/cmds.c:Warner Losh1996-10-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=19202
* Cleanup.Joerg Wunsch1996-05-091-1/+0
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=15703
* Pull a bunch of fixes from the 4.4BSD-Lite2 branch. It's reallyJoerg Wunsch1996-05-051-2/+2
| | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=15648
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8857
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-261-0/+358
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553