Date: Thu, 4 Jul 2013 07:59:12 +0000 (UTC) From: Dag-Erling Smørgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252688 - head/usr.sbin/pw Message-ID: <201307040759.r647xCgU012156@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307040759.r647xCgU012156>