summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add some references, most of these were removed when we stopped buildingjsg2021-03-081-2/+4
| | | | | | and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
* Fix the embedded scope hack. They way this was written is buggy since theclaudio2021-01-191-15/+10
| | | | | | | else does not skip enough of the original code. Instead use a temporary sockaddr pointer and adjust it to point to the sin6 one if an embedded scope was detected. OK jca@
* ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;jmc2020-04-232-8/+8
|
* correct Research Unix edition "appeared in" use in HISTORYjsg2020-02-082-6/+6
| | | | | | | | | | | | | | | | | Starting from "Combined Table of Contents" in Doug McIlroy's "A Research UNIX Reader" a table of which edition manuals appeared in. Checked against manuals from bitsavers/TUHS and source from TUHS where available. Ingo points out there are cases where something is included but not documented until a later release. bcd(6) v6 v7 printf(3) v2 v4 abort(3) v5 v6 system(3) v6 v7 fmod(3) v5 v6 ok schwarze@
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-033-15/+15
|
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-265-12/+8
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* Avoid overflow/truncation during string->integer converion by eliminatingguenther2017-09-201-13/+9
| | | | | | | the 'int' temporary variable. problem reported by Jacob Zimmermann (jacobz (at) senseofsecurity.com.au) ok deraadt@
* fix the remaining cases of .Xr with only one argumentschwarze2016-12-281-5/+3
|
* Fix printf of NULL for the FILTERERR case when the tempfile is emptymillert2016-11-221-2/+2
| | | | or missing. From Sebastien Marie.
* simplify previous; ok bentleyjmc2016-03-171-2/+1
|
* Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.bentley2016-03-172-12/+20
| | | | | | | | Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-161-2/+2
| | | | Feedback millert@ kettenis@
* Move ckqueue() to common_source/common.cjca2016-02-294-61/+34
| | | | Patch from Chris Bennett, ok tb@
* Fix ghastly whitespace. From Chris Bennetttb2016-02-281-93/+92
|
* Remove code that has been disabled for almost 20 years:tb2016-01-291-39/+1
| | | | | | | No need for bauds structure, since handled by cfsetspeed. From Chris Bennett, thanks! ok millert@
* Fix typo in comment. From Chris Bennett, thanks!tb2016-01-271-2/+2
|
* Move prototypes of local functions from lp.h to the .c files and maketb2016-01-125-57/+65
| | | | | | | functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo. ok deraadt@
* build all lpr tools with -Werror-implicit-function-declarationbenno2015-12-284-4/+8
| | | | ok tb@
* Remove NULL-check before free().mmcc2015-12-191-3/+2
|
* no more pac;jmc2015-11-171-4/+3
|
* off to the bitbucket in the skyderaadt2015-11-177-758/+2
|
* replace setbuf with setvbuf, from Frederic Nowaktedu2015-11-041-2/+2
|
* Remove support for lpd.pid file. OK deraadt@millert2015-10-284-51/+24
|
* Use AF_UNIX instead of AF_LOCAL.millert2015-10-272-7/+7
|
* Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptguenther2015-10-112-4/+4
| | | | | | | sizeof(struct sockaddr_un), so do the simple, portable thing. Also convert some strncpy() to strlcpy() ok deraadt@
* unbreak tree.deraadt2015-09-291-0/+250
| | | | | add file millert missed, from a previous diff he mailed me. millert, please check if this is the right one.
* Replace call to __ivaliduser_sa() with a pared down version thatmillert2015-09-293-10/+8
| | | | | only checks the host name. This clears the way for removal of __ivaliduser_sa() and __ivaliduser() from libc. OK deraadt@
* add missing .Ar macrosschwarze2015-09-121-4/+4
|
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-204-11/+11
|
* clean up flags++ instances around getopt()deraadt2015-02-095-18/+18
| | | | ok florian
* Replace <sys/param.h> with <limits.h>deraadt2015-01-161-3/+3
| | | | millert spotted the accidental <ctype.h> removal that caused binary change.
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-1616-43/+45
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@millert2014-12-161-3/+3
|
* Nuke more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok deraadt@ millert@ tedu@
* use nanosleep() instead of select(); ok jsingderaadt2014-11-021-4/+4
|
* Remove chunk special-casing malloc(siz) for realloc(NULL, siz). Bitderaadt2014-10-171-17/+11
| | | | tricky, but note the remembered size is in bss.
* reallocarray() obviouslyderaadt2014-10-161-5/+4
|
* Userland reallocarray() audit.doug2014-10-111-2/+2
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ (had same diff in tree)
* Make sure the correct errno is reported by warn* or err* and notguenther2014-07-201-2/+3
| | | | | | the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
* The hosts.lpd file must exist, or no permission is granted. Change thederaadt2014-07-121-3/+4
| | | | | | the log messages to clarify the reason for the failure to clarify the condition. ok guenther
* stat(2) on the spool file needs privileges. Fixes file size reported bypascal2014-05-211-2/+6
| | | | | | lpq -l. ok millert@
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* Prevent lpd(8) from looking into hosts.equiv.ajacoutot2014-04-203-22/+6
| | | | | | | | | Access control is now done only using hosts.lpd. See lpd(8) for more information about the format of this file. "seems reasonable" tedu@ "looks good" deraadt@ ok sthen@
* clarify a bit about hosts.lpdtedu2014-04-201-4/+6
|
* remove hosts.equiv xrtedu2014-04-191-6/+3
|
* Fix remote printing; broken in rev 1.50. OK guenther@ stsp@millert2014-02-071-1/+5
|
* Fixed typo in error message.tobias2014-01-221-2/+2
| | | | ok jmc@
* fix a leakjsg2014-01-221-1/+3
| | | | ok krw@ deraadt@ benno@
* Use SEEK_SET instead of hardcoded 0.tobias2014-01-201-2/+2
| | | | ok millert@
* Fix race condition during symlink check. If there was no symbolic linktobias2014-01-201-25/+48
| | | | | | | requested, use O_NOFOLLOW, otherwise make sure afterwards that the correct file has been referenced (device/inode supplied by 'S' line). diff basically from and ok millert@, ok guenther@