summaryrefslogtreecommitdiff
path: root/lib/libutil/passwd.c
AgeCommit message (Collapse)Author
2001-01-02Fix a problem introduced by the printf format sweep. Passing a NULLTodd C. Miller
pw_error() is prefectly legal but now we have to check for it explicity (it was handled implicitly before since warn(name) would become warn(NULL)).
2000-11-26Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'.Todd C. Miller
Crank the shlib major number due to the interface change.
2000-08-01close fd for pw_lck on exec, okay deraadt@Niels Provos
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
1998-11-16preserve errno; christosTheo de Raadt
1998-08-03Use UID_MAX, not UINT_MAX. Rename remove_trailing_space() to ↵Todd C. Miller
trim_whitespace() since it trims from both ends, not just the rear.
1998-06-22add missing endusershell()Todd C. Miller
1998-03-23do not wait if vfork() failsTheo de Raadt
1997-11-18-WallTodd C. Miller
1997-11-17Go back to old file locking method, O_EXLOCK method has too many problemsTodd C. Miller
1997-11-17pw_mkdb() now returns -1 if ptmp is size 0.Todd C. Miller
1997-11-17Work around bug in open(2) wrt O_TRUNC and O_SHLOCK|O_EXLOCK.Todd C. Miller
1997-09-29fix yes/no prompt code for EOF case; wosch@freebsdTheo de Raadt
1997-06-22Use O_EXLOCK option of open(2) to open /etc/ptmp with an exclusiveTodd C. Miller
lock. This fixes a DOS bug where a user could run passwd(1) and send it a SIGKILL, thus leaving /etc/ptmp in place.
1997-06-17Add support to handle password files in directories other than /etcNiklas Hallqvist
1997-04-10give only default values when asked for.Niels Provos
1997-02-16added password configuration access function, used to determineNiels Provos
password cipher type at the moment
1997-02-15when using strsep you should be aware that the delimiter will be replacedNiels Provos
by a nifty '0', so you cant check for a colon instead and dump some I am sorry, Dave. I can't do that.
1997-02-13permit 32-bit uid/gid, help from millertTheo de Raadt
1996-12-06vfork w/ exit botchTheo de Raadt
1996-06-19do not unexpectedly unlink the ptmp file; also support SIG*STOP cleanlyTheo de Raadt
with our changes which permit "EDITOR=emacs -nw" to work.
1996-06-17util.h: new resting placeJason Downs
opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h"
1996-06-06system() $EDITOR safelyTheo de Raadt
1996-05-22libutilTheo de Raadt