]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Set the shadow's password instead of the passwd's password.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 10 Feb 2008 19:14:20 +0000 (19:14 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 10 Feb 2008 19:14:20 +0000 (19:14 +0000)
Fix wrong cut&paste.

ChangeLog
src/newusers.c

index 407d2ee3e72f523aa7726f37473656a45666e772..56c2ecb2839aa5f63aae8eaa5869320d330d1a11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-10  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * src/usermod.c: Use a function to convert the dates from
index 07de99c5abe33ad0dabeeeaf288c6cd48c183872..9f2579a8061ae0d23da04033f839bd6c6bc8d3df 100644 (file)
@@ -383,7 +383,7 @@ static int add_passwd (struct passwd *pwd, const char *password)
         */
        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);