Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't use err as labels or variables, especially since we include | 2006-12-20 | 1 | -7/+7 | |
| | | | | | | err.h. OK moritz@ and jaredy@. | ||||
* | Always write errno on pw_lock failure so it can be relied on. | 2006-12-17 | 1 | -2/+4 | |
| | | | | | | Mention errno, pw_file, and pw_init in pw_lock man page. OK jmc@, otto@, millert@, and deraadt@. | ||||
* | getting to the bottom of the issues. sprinkle a few casts that will | 2006-04-02 | 1 | -2/+2 | |
| | | | | | actually help us find bugs later (with lint, not cc), if they get introduced | ||||
* | scrape $Id$ tags. | 2005-08-02 | 1 | -5/+1 | |
| | | | | okay deraadt@, millert@, krw@ | ||||
* | Treat EOF at prompt the same as 'n' instead of looping forever. | 2004-11-04 | 1 | -3/+10 | |
| | | | | Noticed by mepch@. OK pedro@ and deraadt@ | ||||
* | passwd.conf has been deprecated since login.conf was imported. | 2004-07-13 | 1 | -145/+2 | |
| | | | | Today it finally dies. Based on a diff from Gabriel Kihlman. | ||||
* | Change pw_copy(3) to take a 3rd arguement, the existing passwd entry. | 2004-04-20 | 1 | -6/+31 | |
| | | | | | | | This allows an application to only update a password entry if it is in the state it expects. Additionally, if the old passwd struct is specified the new one may have a different pw_name field since matching is done on the original. Adapted from FreeBSD. | ||||
* | ansi and protos | 2003-06-26 | 1 | -45/+24 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | knf | 2003-04-02 | 1 | -3/+3 | |
| | |||||
* | Throw an error if the username field is empty; noticed by mpech@ | 2003-04-01 | 1 | -3/+4 | |
| | |||||
* | more asprintf; millert ok | 2003-03-30 | 1 | -5/+3 | |
| | |||||
* | asprintf; millert ok | 2003-03-30 | 1 | -5/+4 | |
| | |||||
* | mark pw_error() __dead since it exits | 2002-07-31 | 1 | -3/+3 | |
| | |||||
* | %u for uid/gid; millert ok | 2002-06-27 | 1 | -6/+7 | |
| | |||||
* | some -Wall and spaces cleanup, scsi.c left. | 2002-06-09 | 1 | -2/+2 | |
| | | | | some brave soul should look at it. | ||||
* | strlcpy and KNF | 2002-05-24 | 1 | -29/+32 | |
| | |||||
* | Clean up after pw_file(). | 2002-04-10 | 1 | -3/+6 | |
| | | | | | millert@ ok deraadt@ ok to commit | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -3/+3 | |
| | |||||
* | Use the volatile specifier to fix warnings about variables being | 2002-01-16 | 1 | -6/+4 | |
| | | | | clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack. | ||||
* | save errno in signal handler | 2001-11-14 | 1 | -2/+4 | |
| | |||||
* | Change the second arg to pw_mkdb() from a boolean flag to a set of | 2001-08-26 | 1 | -6/+6 | |
| | | | | | | | | | | | 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. | ||||
* | Add new 'secureonly' arg to pw_mkdb() to correspond to pwd_mkdb's new -s | 2001-08-16 | 1 | -17/+29 | |
| | | | | flag and crank the library major due to the interface change. | ||||
* | Plug memory leak in pw_copy(); millert@ ok | 2001-07-11 | 1 | -2/+3 | |
| | |||||
* | correct type on last arg to execl(); nordin@cse.ogi.edu | 2001-07-09 | 1 | -4/+4 | |
| | |||||
* | Fix a problem introduced by the printf format sweep. Passing a NULL | 2001-01-02 | 1 | -4/+8 | |
| | | | | | 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)). | ||||
* | Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'. | 2000-11-26 | 1 | -6/+12 | |
| | | | | Crank the shlib major number due to the interface change. | ||||
* | close fd for pw_lck on exec, okay deraadt@ | 2000-08-01 | 1 | -2/+6 | |
| | |||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -3/+3 | |
| | | | | | | | | | 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). | ||||
* | preserve errno; christos | 1998-11-16 | 1 | -3/+6 | |
| | |||||
* | Use UID_MAX, not UINT_MAX. Rename remove_trailing_space() to trim_whitespace() since it trims from both ends, not just the rear. | 1998-08-03 | 1 | -16/+18 | |
| | |||||
* | add missing endusershell() | 1998-06-22 | 1 | -3/+5 | |
| | |||||
* | do not wait if vfork() fails | 1998-03-23 | 1 | -2/+4 | |
| | |||||
* | -Wall | 1997-11-18 | 1 | -7/+11 | |
| | |||||
* | Go back to old file locking method, O_EXLOCK method has too many problems | 1997-11-17 | 1 | -9/+6 | |
| | |||||
* | pw_mkdb() now returns -1 if ptmp is size 0. | 1997-11-17 | 1 | -2/+11 | |
| | |||||
* | Work around bug in open(2) wrt O_TRUNC and O_SHLOCK|O_EXLOCK. | 1997-11-17 | 1 | -4/+7 | |
| | |||||
* | fix yes/no prompt code for EOF case; wosch@freebsd | 1997-09-29 | 1 | -7/+7 | |
| | |||||
* | Use O_EXLOCK option of open(2) to open /etc/ptmp with an exclusive | 1997-06-22 | 1 | -5/+5 | |
| | | | | | lock. This fixes a DOS bug where a user could run passwd(1) and send it a SIGKILL, thus leaving /etc/ptmp in place. | ||||
* | Add support to handle password files in directories other than /etc | 1997-06-17 | 1 | -27/+91 | |
| | |||||
* | give only default values when asked for. | 1997-04-10 | 1 | -39/+33 | |
| | |||||
* | added password configuration access function, used to determine | 1997-02-16 | 1 | -1/+143 | |
| | | | | password cipher type at the moment | ||||
* | when using strsep you should be aware that the delimiter will be replaced | 1997-02-15 | 1 | -3/+3 | |
| | | | | | by a nifty '0', so you cant check for a colon instead and dump some I am sorry, Dave. I can't do that. | ||||
* | permit 32-bit uid/gid, help from millert | 1997-02-13 | 1 | -11/+21 | |
| | |||||
* | vfork w/ exit botch | 1996-12-06 | 1 | -2/+2 | |
| | |||||
* | do not unexpectedly unlink the ptmp file; also support SIG*STOP cleanly | 1996-06-19 | 1 | -9/+13 | |
| | | | | with our changes which permit "EDITOR=emacs -nw" to work. | ||||
* | util.h: new resting place | 1996-06-17 | 1 | -1/+3 | |
| | | | | | | opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h" | ||||
* | system() $EDITOR safely | 1996-06-06 | 1 | -5/+7 | |
| | |||||
* | libutil | 1996-05-22 | 1 | -0/+347 | |