]> granicus.if.org Git - shadow/commitdiff
loginsh is a global variable, use newshell for the update_shell()'s parameter.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:54:39 +0000 (13:54 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:54:39 +0000 (13:54 +0000)
ChangeLog
src/chsh.c

index 0d2a3ecb18429ec3d797052225a90fafac4ec92b..72fe076136fb1bb7defde3e5cbba90662df7820d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@
        declaration. (add void)
        * src/login.c: login_prompt is the name of a function, use
        loginprompt for the internal variable.
+       * src/chsh.c: loginsh is a global variable, use newshell for the
+       update_shell()'s parameter.
 
 2008-01-01  Nicolas François  <nicolas.francois@centraliens.net>
 
index 6e1e5eda3a8c56471e764c972a2d3d9ac45b9025..b6e63e00bcdb6790db4a8ba02f365a63956102a6 100644 (file)
@@ -331,7 +331,7 @@ static void check_perms (const struct passwd *pw)
  *
  *     It will not return in case of error.
  */
-static void update_shell (const char *user, char *loginsh)
+static void update_shell (const char *user, char *newshell)
 {
        const struct passwd *pw;        /* Password entry from /etc/passwd   */
        struct passwd pwent;            /* New password entry                */
@@ -389,7 +389,7 @@ static void update_shell (const char *user, char *loginsh)
         * fields remain unchanged.
         */
        pwent = *pw;
-       pwent.pw_shell = loginsh;
+       pwent.pw_shell = newshell;
 
        /*
         * Update the passwd file entry. If there is a DBM file, update