Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-17 | simplify previous; ok bentley | Jason McIntyre | |
2016-03-17 | Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom. | Anthony J. Bentley | |
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@ | |||
2016-03-16 | More "(<blah> *)0" -> NULL, avoiding any stdarg functions. | Kenneth R Westerback | |
Feedback millert@ kettenis@ | |||
2016-02-29 | Move ckqueue() to common_source/common.c | Jeremie Courreges-Anglas | |
Patch from Chris Bennett, ok tb@ | |||
2016-02-28 | Fix ghastly whitespace. From Chris Bennett | tb | |
2016-01-29 | Remove code that has been disabled for almost 20 years: | tb | |
No need for bauds structure, since handled by cfsetspeed. From Chris Bennett, thanks! ok millert@ | |||
2016-01-27 | Fix typo in comment. From Chris Bennett, thanks! | tb | |
2016-01-12 | Move prototypes of local functions from lp.h to the .c files and make | tb | |
functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo. ok deraadt@ | |||
2015-12-28 | build all lpr tools with -Werror-implicit-function-declaration | Sebastian Benoit | |
ok tb@ | |||
2015-12-19 | Remove NULL-check before free(). | mmcc | |
2015-11-17 | no more pac; | Jason McIntyre | |
2015-11-17 | off to the bitbucket in the sky | Theo de Raadt | |
2015-11-04 | replace setbuf with setvbuf, from Frederic Nowak | Ted Unangst | |
2015-10-28 | Remove support for lpd.pid file. OK deraadt@ | Todd C. Miller | |
2015-10-27 | Use AF_UNIX instead of AF_LOCAL. | Todd C. Miller | |
2015-10-11 | Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept | Philip Guenther | |
sizeof(struct sockaddr_un), so do the simple, portable thing. Also convert some strncpy() to strlcpy() ok deraadt@ | |||
2015-09-29 | unbreak tree. | Theo de Raadt | |
add file millert missed, from a previous diff he mailed me. millert, please check if this is the right one. | |||
2015-09-29 | Replace call to __ivaliduser_sa() with a pared down version that | Todd C. Miller | |
only checks the host name. This clears the way for removal of __ivaliduser_sa() and __ivaliduser() from libc. OK deraadt@ | |||
2015-09-12 | add missing .Ar macros | Ingo Schwarze | |
2015-08-20 | stdlib.h is in scope; do not cast malloc/calloc/realloc* | Theo de Raadt | |
2015-02-09 | clean up flags++ instances around getopt() | Theo de Raadt | |
ok florian | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> | Theo de Raadt | |
millert spotted the accidental <ctype.h> removal that caused binary change. | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
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) | |||
2014-12-16 | Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@ | Todd C. Miller | |
2014-11-18 | Nuke more obvious #include duplications. | Kenneth R Westerback | |
ok deraadt@ millert@ tedu@ | |||
2014-11-02 | use nanosleep() instead of select(); ok jsing | Theo de Raadt | |
2014-10-17 | Remove chunk special-casing malloc(siz) for realloc(NULL, siz). Bit | Theo de Raadt | |
tricky, but note the remembered size is in bss. | |||
2014-10-16 | reallocarray() obviously | Theo de Raadt | |
2014-10-11 | Userland reallocarray() audit. | Doug Hogan | |
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) | |||
2014-07-20 | Make sure the correct errno is reported by warn* or err* and not | Philip Guenther | |
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org) | |||
2014-07-12 | The hosts.lpd file must exist, or no permission is granted. Change the | Theo de Raadt | |
the log messages to clarify the reason for the failure to clarify the condition. ok guenther | |||
2014-05-21 | stat(2) on the spool file needs privileges. Fixes file size reported by | Pascal Stumpf | |
lpq -l. ok millert@ | |||
2014-05-20 | Use errc/warnc to simplify code. | Philip Guenther | |
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | |||
2014-04-20 | Prevent lpd(8) from looking into hosts.equiv. | Antoine Jacoutot | |
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@ | |||
2014-04-20 | clarify a bit about hosts.lpd | Ted Unangst | |
2014-04-19 | remove hosts.equiv xr | Ted Unangst | |
2014-02-07 | Fix remote printing; broken in rev 1.50. OK guenther@ stsp@ | Todd C. Miller | |
2014-01-22 | Fixed typo in error message. | Tobias Stoeckmann | |
ok jmc@ | |||
2014-01-22 | fix a leak | Jonathan Gray | |
ok krw@ deraadt@ benno@ | |||
2014-01-20 | Use SEEK_SET instead of hardcoded 0. | Tobias Stoeckmann | |
ok millert@ | |||
2014-01-20 | Fix race condition during symlink check. If there was no symbolic link | Tobias Stoeckmann | |
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@ | |||
2013-12-29 | Fix fd leaks when fd < 0 or flock() fails. Original diff from | Kenneth R Westerback | |
NetBSD via Loganaden Velvindron out of cppcheck. | |||
2013-12-10 | Remove the printcap fc, fs, xc, xs capabilities from lpd that were used | Christian Weisgerber | |
to configure a tty by poking magic numbers into sgtty. If needed, the ms capability, which uses symbolic stty modes, can be used instead. Better description of ms from FreeBSD. ok beck@, deraadt@, jmc@ (man page) | |||
2013-11-24 | more ctype cleanups | Theo de Raadt | |
checked by jca | |||
2013-10-27 | If a constant string needs a name, use a static const array instead of a | Philip Guenther | |
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@ | |||
2013-08-08 | Prep for big ino_t: cast to unsigned long long and format with %ll or %q | Philip Guenther | |
httpd correction and ok kettenis@ | |||
2013-03-11 | handle ECONNABORTED errors from accept(). In many code blocks they can be | Theo de Raadt | |
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories... | |||
2013-02-15 | Add missing break, reported by Jared S. Candelaria. | Martin Pieuchot | |
2013-01-17 | some simple macro fixes; | Jason McIntyre | |
2012-12-05 | Remove excessive sys/cdefs.h inclusion | Theo de Raadt | |
ok guenther millert kettenis |