Fixed problem where users with a blank password field can't change their
password.
This commit is contained in:
parent
8a763302fe
commit
a19e35bf34
@ -91,7 +91,7 @@ getnewpasswd(pw)
|
||||
|
||||
(void)printf("Changing local password for %s.\n", pw->pw_name);
|
||||
|
||||
if (uid && pw->pw_passwd &&
|
||||
if (uid && pw->pw_passwd[0] &&
|
||||
#ifdef DES
|
||||
strcmp(crypt(getpass("Old password:"), pw->pw_passwd),
|
||||
pw->pw_passwd)) {
|
||||
|
Loading…
Reference in New Issue
Block a user