From 3e261d9b7cd823f63f23c7de4aaa0860b969f999 Mon Sep 17 00:00:00 2001 From: Dag-Erling Smørgrav Date: Thu, 4 Jul 2013 07:59:11 +0000 Subject: Fall back to sha512 if passwd_format is not set. MFC after: 3 days --- pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw/pw_user.c') diff --git a/pw/pw_user.c b/pw/pw_user.c index 4d7e7ce..def238c 100644 --- a/pw/pw_user.c +++ b/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); -- cgit v1.2.3-56-ge451