Return to chpass.c CVS log | Up to [local] / src / usr.bin / chpass |
version 1.7, 1997/01/15 23:42:18 | version 1.8, 1997/02/13 17:28:39 | ||
---|---|---|---|
|
|
||
} | } | ||
} else | } else | ||
#endif /* YP */ | #endif /* YP */ | ||
{ | |||
/* Copy the passwd file to the lock file, updating pw. */ | |||
pw_copy(pfd, tfd, pw); | |||
/* Copy the passwd file to the lock file, updating pw. */ | /* Now finish the passwd file update. */ | ||
pw_copy(pfd, tfd, pw); | if (pw_mkdb() < 0) | ||
pw_error((char *)NULL, 0, 1); | |||
/* Now finish the passwd file update. */ | } | ||
if (pw_mkdb() < 0) | |||
pw_error((char *)NULL, 0, 1); | |||
exit(0); | exit(0); | ||
} | } |