]> granicus.if.org Git - sudo/commitdiff
Add missing braces that broke -i mode.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 16 Jun 2010 18:09:07 +0000 (14:09 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 16 Jun 2010 18:09:07 +0000 (14:09 -0400)
--HG--
branch : 1.7

sudo.c

diff --git a/sudo.c b/sudo.c
index cbc8d0af3332f57ed2496b6469bc737b346693d5..74807ed63df0a2347983f32e61655f8a2e6eb1b1 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -859,9 +859,10 @@ exec_setup(flags, rbac_enabled, ttyname, ttyfd)
 
     if (ISSET(sudo_mode, MODE_LOGIN_SHELL)) {
        /* Change to target user's homedir. */
-       if (chdir(runas_pw->pw_dir) == -1)
+       if (chdir(runas_pw->pw_dir) == -1) {
            warning("unable to change directory to %s", runas_pw->pw_dir);
            goto done;
+       }
     }
 
     rval = TRUE;