| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
| |
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.
ok deraadt@ krw@
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
Patch from Chris Bennett, ok tb@
|
|
|
|
|
|
|
| |
functions static if possible. Move delay() to lpd/printjob.c and fix
an annoying typo.
ok deraadt@
|
| |
|
| |
|
|
|
|
|
|
|
| |
sizeof(struct sockaddr_un), so do the simple, portable thing.
Also convert some strncpy() to strlcpy()
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
|
|
|
|
|
| |
the errno of an intervening cleanup operation like close/unlink/etc.
Diff from Doug Hogan (doug (at) acyclic.org)
|
|
|
|
|
|
| |
lpq -l.
ok millert@
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
checked by jca
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
ok guenther millert kettenis
|
|
|
|
|
|
|
|
|
| |
int (*)(struct dirent *)
to
int (*)(const struct dirent *)
to match POSIX.
ok millert@, ports check by naddy@
|
|
|
|
|
| |
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
From NetBSD from Coverity CID 1752.
OK jaredy@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
| |
millert@ ok
|
|
|
|
| |
ok deraadt@, ian@
|
| |
|
| |
|
|
|
|
|
| |
3084; different fix used. Hopefully this makes the code in question
easier to read. deraadt@ henric@ OK
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o mark fatal() as __dead
o add SIGINT to the signal mask when installing abort() as a handler.
We can end up in abortpr() due to several different signals and since
abortpr() kill()s itself with SIGINT we need to explicately protect
against the current process receiving SIGINT while in abortpr()
o Don't leak the lock fd to children spawned by lpd
o Close the lock file (and thus unlocke immediately in abortpr().
Otherwise, if there is an output filter the lock file only gets
closed after we finish waiting for the output filter to die.
This causes a race condition in lprm such that the per-printer
daemon does not get restarted when lprm kills the active job
(noticed during c2k2 with the mp3 printer spool ;-)
o Open the printcap file with privs raised just in case it is not
world-readable.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
o Kill "rank" global (doesn't need to be global)
o Make inform() static (local to displayq.c)
o Pass in rank to inform() based on index within sorted mtime array
o Simplify compar()
|
|
|
|
| |
o Remove some unneeded casts to char * when calling free()
|
| |
|