[Pkg-shadow-commits] r1770 - in upstream/trunk: . src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Feb 10 19:14:21 UTC 2008
Author: nekral-guest
Date: 2008-02-10 19:14:20 +0000 (Sun, 10 Feb 2008)
New Revision: 1770
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/newusers.c
Log:
Set the shadow's password instead of the passwd's password.
Fix wrong cut&paste.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-02-03 21:53:30 UTC (rev 1769)
+++ upstream/trunk/ChangeLog 2008-02-10 19:14:20 UTC (rev 1770)
@@ -1,3 +1,8 @@
+2008-02-10 Nicolas François <nicolas.francois at centraliens.net>
+
+ * src/newusers.c: Set the shadow's password instead of the
+ passwd's password. Fix wrong cut&paste.
+
2008-02-03 Nicolas François <nicolas.francois at centraliens.net>
* src/usermod.c: Use a function to convert the dates from
Modified: upstream/trunk/src/newusers.c
===================================================================
--- upstream/trunk/src/newusers.c 2008-02-03 21:53:30 UTC (rev 1769)
+++ upstream/trunk/src/newusers.c 2008-02-10 19:14:20 UTC (rev 1770)
@@ -383,7 +383,7 @@
*/
spent.sp_namp = pwd->pw_name;
if ((crypt_method != NULL) && (0 == strcmp(crypt_method, "NONE"))) {
- pwd->pw_passwd = (char *)password;
+ spent.sp_pwdp = (char *)password;
} else {
const char *salt = crypt_make_salt (crypt_method, crypt_arg);
spent.sp_pwdp = pw_encrypt (password, salt);
More information about the Pkg-shadow-commits
mailing list