ocpasswd: corrected fallback to MD5 crypt

This commit is contained in:
Nikos Mavrogiannopoulos
2015-01-19 14:17:23 +01:00
parent a3d0caf9c5
commit 0ce83be801

View File

@@ -83,7 +83,7 @@ crypt_int(const char *fpasswd, const char *username, const char *groupname,
cr_passwd = crypt(passwd, salt);
if (cr_passwd == NULL) { /* try MD5 */
salt[1] = 1;
salt[1] = '1';
cr_passwd = crypt(passwd, salt);
}
if (cr_passwd == NULL) {