summaryrefslogtreecommitdiff
path: root/usr.sbin/vipw/vipw.c
AgeCommit message (Collapse)Author
2007-11-17Deal with timespec vs. timeval precision issues. Fixes a problemTodd C. Miller
where the "no changes" case was not properly detected due to timespec supporting nanosec resolution but timeval only supporting microsec resolution. OK deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-01-24Instead of stashing the timestamp on the pw temp file before eachTodd C. Miller
edit, just stash it once in copyfile(). This fixes the check for whether or not changes have been made (based on the timestamp) for cases like when the _shadow group is missing but is fixed by the admin during the next edit.
2003-01-24ansiTheo de Raadt
2002-05-30minor KNFTheo de Raadt
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.
2001-08-19Better file change detection:Todd C. Miller
o when copying to temp file set utimes on temp file equal to original o use st_mtimespec instead of st_mtime for better granularity
2001-08-16extra arg to pw_mkdbTodd C. Miller
2000-11-26Update for pw_mkdb(3) interface change. All but vipw and userdel canTodd C. Miller
specify a username (and thus avoid rebuilding the while database).
1999-05-29Check size as well as mtime when deciding whether or not the fileTodd C. Miller
was changed during edit. Crontab patch from <andrew@untraceable.net>. It may be better to simply do a real compare inline.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-09-01better error messageTheo de Raadt
1996-05-22libutilTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt