Fixed problem where users with a blank password field can't change their

password.
This commit is contained in:
proven 1993-04-09 21:37:55 +00:00
parent 8a763302fe
commit a19e35bf34

View File

@ -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)) {