mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Fall back to sha512 if passwd_format is not set.
MFC after: 3 days
This commit is contained in:
parent
676ef34c81
commit
d28832a05e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252688
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user