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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"