summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
AgeCommit message (Collapse)Author
2014-04-20Prevent 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-20clarify a bit about hosts.lpdTed Unangst
2014-04-19remove hosts.equiv xrTed Unangst
2014-02-07Fix remote printing; broken in rev 1.50. OK guenther@ stsp@Todd C. Miller
2014-01-22Fixed typo in error message.Tobias Stoeckmann
ok jmc@
2014-01-22fix a leakJonathan Gray
ok krw@ deraadt@ benno@
2014-01-20Use SEEK_SET instead of hardcoded 0.Tobias Stoeckmann
ok millert@
2014-01-20Fix race condition during symlink check. If there was no symbolic linkTobias 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-29Fix fd leaks when fd < 0 or flock() fails. Original diff fromKenneth R Westerback
NetBSD via Loganaden Velvindron out of cppcheck.
2013-12-10Remove the printcap fc, fs, xc, xs capabilities from lpd that were usedChristian 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-24more ctype cleanupsTheo de Raadt
checked by jca
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip 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-08Prep for big ino_t: cast to unsigned long long and format with %ll or %qPhilip Guenther
httpd correction and ok kettenis@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-02-15Add missing break, reported by Jared S. Candelaria.Martin Pieuchot
2013-01-17some simple macro fixes;Jason McIntyre
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-29Change scandir()'s 'select' argument fromPhilip Guenthe
int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
2012-03-22Update alphasort() and scandir()'s argument types to match POSIX:Philip Guenthe
use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2011-05-02no need to escape `|'; as discussed with schwartzeJason McIntyre
2010-10-28more roff removal;Jason McIntyre
2010-03-22Do not leak file descriptor `fd' on error path; from zinovikTheo de Raadt
2010-02-18Each .Bk must be closed by .Ek.Ingo Schwarze
Found by and unbreaking the build with mandoc(1). OK jmc@
2010-01-04Stop installing many of the incredibly dated and un-authoritative share/docTheo de Raadt
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther
2009-12-29replace a few remaining UNIX terms with .Ux macros; this diffIgor Sobrado
completes the changes from Oct 22.
2009-10-29it is possible specifying more than one printer concurrently; useIgor Sobrado
.Op macros for options instead of hardcoding brackets; remove a few superfluous .Ar macros before ellipsis; "usage:" is lower case; while here, apply some spacing tweaks. tweaked by jmc@ for a synopsis with too many arguments. ok jmc@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-03-03spacesKevin Steves
2008-09-02be more careful in checking disk space; ok millertTheo de Raadt
2008-05-26cgetstr(3) can also return 2 so handle that. Also restructre things a bitOtto Moerbeek
to get rid of the flag var. ok deraadt@ fgsch@
2008-05-22Comparing string literals does not work as the author expected.Otto Moerbeek
From Adam Majer (debian maintaner); looks correct fgs@
2008-04-15- make it clear that hosts.lpd follows the same syntax that hosts.equiv(5)Antoine Jacoutot
inputs from jmc@ "looks ok" beck@ (similar older diff), "fine by me" jmc@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-05remove code for -W, argument now a no-op; ok millert@Kevin Steves
2007-05-03Deprecate the -W flag; it has been the default for years now.Todd C. Miller
Joint effort with stevesk@ and jmc@
2007-05-01remove #ifndef SUN_LEN; ok millert@Kevin Steves
2007-05-01use warn() vs. perror() for consistency; ok millert@Kevin Steves
2007-04-08I have an HP LaserJet (P2015dn) whose LPR implementation may not endKevin Steves
the send queue state command stream with '\n'; check for this case and print '\n' if needed. Without this you may see something like: $ lpq queue empty$ ok millert@
2007-04-07KNF, spaces; ok millert@Kevin Steves
2007-04-07trailing "\n" not needed in fatal(); ok millert@Kevin Steves
2007-03-16remove unused variable; ok millert@Kevin Steves
2007-03-13typos in comments; ok millert@Kevin Steves
2007-03-06tidy up synopsis, usage(), and options list; from Igor SobradoJason McIntyre
2007-02-16sort options; from Igor SobradoJason McIntyre
2007-02-16sync synopsis and usage(); from Igor SobradoJason McIntyre
2007-02-16sort options and sync usage(); from Igor SobradoJason McIntyre
2007-02-12kill extra word;Jason McIntyre