summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2002-08-23do not export error_tableTheo de Raadt
2002-07-31mark pw_error() __dead since it exitsTodd C. Miller
2002-06-27%u for uid/gid; millert okTheo de Raadt
2002-06-25Now that we don't have a trailing newline we need to explicitly checkTodd C. Miller
that the first char in the line is not NUL after killing comments.
2002-06-22Use strtok_r() instead of strsep() since the latter treats consecutiveTodd C. Miller
field separators as empty field. This is not what we want for whitespace-delimited fields.
2002-06-21login_fbtab(3) fixes:Todd C. Miller
o make first arg const since we don't modify it o use strsep() instead of strtok() as strtok() changes internal state o add some bounds checking and use strlcat() instead of pointer arithmetic o ANSI function headers Originally based on a patch from Lars J. Buitinck but much modified.
2002-06-09some -Wall and spaces cleanup, scsi.c left.Federico G. Schwindt
some brave soul should look at it.
2002-05-26pid_t cleanupTheo de Raadt
2002-05-24strlcpy at most 16 characters, so says man pageTheo de Raadt
2002-05-24strlcpy and KNFTheo de Raadt
2002-05-24KNFTheo de Raadt
2002-05-22atexit(3) can fail. handle error accordingly. deraadt okJun-ichiro itojun Hagino
XXX libraries should not use atexit(3) from within, as program can terminate with _exit.
2002-05-01o) start new sentence on a new line;Mike Pechkin
o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
2002-04-30Initial cleanup:Mike Pechkin
o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok
2002-04-10Clean up after pw_file().Mike Pechkin
millert@ ok deraadt@ ok to commit
2002-02-26mdoc fixes from pjanzenPeter Valchev
2002-02-26rephrase warning; from miodPeter Valchev
2002-02-25print a warning that realpath points to internal static storage space thatPeter Valchev
will be overwritten by subsequent calls; suggested by pjanzen, ok millert
2002-02-21fgsch, if you commit without test compiling ONE MORE TIME, I will send a ↵Theo de Raadt
castration team down to argentina
2002-02-21use sizeof w/ defines; niklas@ millert@ ok.Federico G. Schwindt
2002-02-19login_close() should avoid memory leak.Mike Pechkin
millert@ ok
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-16Use the volatile specifier to fix warnings about variables beingTodd C. Miller
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
2002-01-02pids should be pid_t, not intMike Pechkin
2001-12-08save the pid as well, and only do the atexit in the same pidTheo de Raadt
2001-12-01Warn that pidfile() will not have the expected removal behaviour if _exit()Miod Vallat
is called.
2001-11-14save errno in signal handlerTheo de Raadt
2001-10-01Start new sentence on a new line.Mike Pechkin
jakob@ ok
2001-09-29re-enable pidfile(3). ok millert@Jakob Schlyter
2001-09-29zap pidfile from here too, until conflict with kerberosV is fixed ok deraadt@Matthieu Herrb
2001-09-29jakob did not even do a make build, sighTheo de Raadt
2001-09-28add pidfile(3) prototypeJakob Schlyter
2001-09-28multiple calls to pidfile(3) are actually ok, but there are problems if you ↵Jakob Schlyter
change the basename
2001-09-28add pidfile(3) - write a daemon pid file. ok deraadt@, millert@.Jakob Schlyter
2001-09-06oh this is horribleTheo de Raadt
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
2001-08-26Change the second arg to pw_mkdb() from a boolean flag to a set ofTodd C. Miller
bit flags ORed together. Currently the only flags defined are _PASSWORD_SECUREONLY and _PASSWORD_OMITV7 but this is enough to cause pw_mkdb() to run pwd_mkdb with the options we want. With this change we no longer generate the old V7 passwd file when only the extra fields in master.passwd (or the encrypted password) have changed. There are other programs that could probably use the _PASSWORD_OMITV7 flag; they will be converted at a future date.
2001-08-162nd arg to pw_mkdb()Todd C. Miller
2001-08-16consistently use #include "util.h" not <util.h> since util.h lives in this dir.Todd C. Miller
2001-08-16Add new 'secureonly' arg to pw_mkdb() to correspond to pwd_mkdb's new -sTodd C. Miller
flag and crank the library major due to the interface change.
2001-08-12Get rid of extraneous #includes by using stub struct declarations.Todd C. Miller
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
2001-07-13RETURN VALUES, not RETURN VALUETodd C. Miller
2001-07-13Make the list of required #includes match reality.Todd C. Miller
2001-07-11Plug memory leak in pw_copy(); millert@ okAaron Campbell
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-18o move passwd.conf variables into login.confTodd C. Miller
o no longer install passwd.conf (but it is used if it exists and the needed info is not in login.conf) o added passwordtime and minpasswordlen login.conf variables
2001-06-10proto; S@mSmith.netTheo de Raadt
2001-06-03new license from Wietse; permits modification. This code is derived fromTheo de Raadt
logdaemon, so this applies: ftp://ftp.porcupine.org/pub/security/logdaemon_license