diff options
author | des <des@FreeBSD.org> | 2013-07-04 07:59:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-07-04 07:59:11 +0000 |
commit | 54d398971f048d2c2153cdd3577e21c85c3dbc00 (patch) | |
tree | 077a67629f1d82e017cacd4a69a6b67bf4190a7d /usr.sbin | |
parent | a7f2f1e583440115e32108c3bbc4163830456481 (diff) | |
download | FreeBSD-src-54d398971f048d2c2153cdd3577e21c85c3dbc00.zip FreeBSD-src-54d398971f048d2c2153cdd3577e21c85c3dbc00.tar.gz |
Fall back to sha512 if passwd_format is not set.
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 4d7e7ce..def238c 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -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); |