summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass/pw_copy.c
Commit message (Collapse)AuthorAgeFilesLines
* Prevent chpass(1) from writing -1 in the UID or GID fieldsmike2001-07-261-2/+4
| | | | | | | | | in the password file by properly casting integers. PR: 27757 Reviewed by: des Approved by: des MFC after: 4 days
* Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional andpeter1999-09-061-2/+0
| | | | we have enough pseudo-options already.
* Allow comments and blank lines as advertised in passwd(5).sheldonh1999-07-291-0/+11
| | | | | PR: 12828 Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
* More egcs warning fixes:imp1999-04-251-1/+2
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
* Fixed printf format errors. Assume that time_t's are representable asbde1998-10-171-2/+2
| | | | longs.
* Quieten -Wall.markm1997-09-281-1/+2
|
* *blush* Whoops: got the format strings wrong.wpaul1996-10-221-4/+4
|
* Part 2 of fix for PR #1519. The problem here is similar to whatwpaul1996-10-221-8/+25
| | | | | was going on in pwd_mkdb, except here we also have to deal with the pw_change and pw_expire fields.
* Take the ypchfn/ypchsh stuff that was removed from passwdwpaul1995-08-131-0/+8
| | | | | | | | | | | | | | | | | | | and graft it into chpass. Chpass can now tell when it's being asked to operate on an NIS user and it displayes the appropriate message in the editor template ("Changing NIS information for foo"). After the changes have been made, chpass will promte the user for his NIS password. If the password is correct, the changes are committed to yppasswdd. Hopefully, this should make NIS more transparent to the end user. Note that even the superuser needs to know a user's password before he can change any NIS information (such is the nature of yppasswdd). Also, changes to the password field are not permitted -- that's what yppasswd is for. (The superuser may specify a new password, but again, he needs to know the user's original password before he can change it.)
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+107
OpenPOWER on IntegriCloud