summaryrefslogtreecommitdiff
path: root/lib/libutil/passwd.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-08-10delete volatile intended to silence whiny old compilers around vfork.Theo de Raadt
2015-04-24Use strtonum() instead of strtoul() when parsing uid/gid so we getTodd C. Miller
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
2013-08-17Use %lld and cast to (long long) when printing time_t values and atoll()Philip Guenther
2013-08-06When writing a new record in pw_copy() print the uid and gid asTodd C. Miller
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
2006-12-20Don't use err as labels or variables, especially since we includeRay Lai
2006-12-17Always write errno on pw_lock failure so it can be relied on.Ray Lai
2006-04-02getting to the bottom of the issues. sprinkle a few casts that willTheo de Raadt
2005-08-02scrape $Id$ tags.Marc Espie
2004-11-04Treat EOF at prompt the same as 'n' instead of looping forever.Todd C. Miller
2004-07-13passwd.conf has been deprecated since login.conf was imported.Todd C. Miller
2004-04-20Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.Todd C. Miller
2003-06-26ansi and protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-04-02knfTheo de Raadt
2003-04-01Throw an error if the username field is empty; noticed by mpech@Todd C. Miller
2003-03-30more asprintf; millert okTheo de Raadt
2003-03-30asprintf; millert okTheo 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-09some -Wall and spaces cleanup, scsi.c left.Federico G. Schwindt
2002-05-24strlcpy and KNFTheo de Raadt
2002-04-10Clean up after pw_file().Mike Pechkin
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-16Use the volatile specifier to fix warnings about variables beingTodd C. Miller
2001-11-14save errno in signal handlerTheo de Raadt
2001-08-26Change the second arg to pw_mkdb() from a boolean flag to a set ofTodd C. Miller
2001-08-16Add new 'secureonly' arg to pw_mkdb() to correspond to pwd_mkdb's new -sTodd 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-01-02Fix a problem introduced by the printf format sweep. Passing a NULLTodd C. Miller
2000-11-26Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'.Todd C. Miller
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
1998-11-16preserve errno; christosTheo de Raadt
1998-08-03Use UID_MAX, not UINT_MAX. Rename remove_trailing_space() to trim_whitespace...Todd C. Miller
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
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
1997-02-15when using strsep you should be aware that the delimiter will be replacedNiels Provos