svn commit: r252688 - head/usr.sbin/pw
Dag-Erling Smørgrav
des at FreeBSD.org
Thu Jul 4 07:59:12 UTC 2013
Author: des
Date: Thu Jul 4 07:59:11 2013
New Revision: 252688
URL: http://svnweb.freebsd.org/changeset/base/252688
Log:
Fall back to sha512 if passwd_format is not set.
MFC after: 3 days
Modified:
head/usr.sbin/pw/pw_user.c
Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c Thu Jul 4 07:37:29 2013 (r252687)
+++ head/usr.sbin/pw/pw_user.c Thu Jul 4 07:59:11 2013 (r252688)
@@ -573,7 +573,7 @@ pw_user(struct userconf * cnf, int mode,
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);
More information about the svn-src-all
mailing list