passwd also use crypt_make_salt().
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 20 Nov 2007 09:51:36 +0000 (09:51 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 20 Nov 2007 09:51:36 +0000 (09:51 +0000)
ChangeLog
src/passwd.c

index cba2b88aeb5d30dabff6846ab636ace66bbc5b50..b1e3923458895e5fdc00e54c4bf254b3b1db025f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,7 +6,8 @@
        number of rounds.
        * libmisc/salt.c, lib/getdef.c: ENCRYPT_METHOD and MD5_CRYPT_ENAB
        are needed also when USE_PAM (e.g. for chpasswd).
-       * src/newusers.c, src/gpasswd.c: Use the new crypt_make_salt prototype
+       * src/passwd.c, src/newusers.c, src/gpasswd.c: Use the new
+       crypt_make_salt prototype
        * src/chpasswd.c, src/chgpasswd.c: Add option -c, --crypt-method
        and -s, --sha-rounds to specify the crypt method and number of
        rounds in case of one of the SHA methods. The new prototype of
index 1f57e705b31ff1840e85bcc4047af0bea8510a8a..0c349aaba92017da30a4d4f3c7a50be57296051e 100644 (file)
@@ -309,7 +309,7 @@ static int new_password (const struct passwd *pw)
        /*
         * Encrypt the password, then wipe the cleartext password.
         */
-       cp = pw_encrypt (pass, crypt_make_salt ());
+       cp = pw_encrypt (pass, crypt_make_salt (NULL, NULL));
        memzero (pass, sizeof pass);
 
 #ifdef HAVE_LIBCRACK_HIST