run pwd_mkdb with new check option [-c] to verify correctness

of /etc/master.passwd
This commit is contained in:
wosch 1996-08-20 19:57:23 +00:00
parent 86c7dd2224
commit dae73fa126

View File

@ -32,7 +32,7 @@
#
# Email: Wolfram Schneider <wosch@cs.tu-berlin.de>
#
# $Id: adduser.perl,v 1.12 1996/08/13 21:50:51 wosch Exp $
# $Id: adduser.perl,v 1.13 1996/08/14 19:06:04 wosch Exp $
#
# read variables
@ -239,7 +239,7 @@ sub home_partition_valid {
# check for valid passwddb
sub passwd_check {
system("$pwd_mkdb $etc_passwd");
system("$pwd_mkdb -c $etc_passwd");
die "\nInvalid $etc_passwd - cannot add any users!\n" if $?;
}