]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw_user.c
Fall back to sha512 if passwd_format is not set.
[pw-darwin.git] / pw / pw_user.c
index 4d7e7ce4d3a49ba06dd76e898b39b6a48eb2662a..def238ccf8d108cab3ab156d77eba4e514e71db0 100644 (file)
@@ -573,7 +573,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
 
                        lc = login_getpwclass(pwd);
                        if (lc == NULL ||
-                           login_setcryptfmt(lc, "md5", NULL) == NULL)
+                           login_setcryptfmt(lc, "sha512", NULL) == NULL)
                                warn("setting crypt(3) format");
                        login_close(lc);
                        pwd->pw_passwd = pw_password(cnf, args, pwd->pw_name);