]> granicus.if.org Git - sudo/commitdiff
May need to update the runas user after parsing command-based defaults.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 20 Feb 2009 20:55:32 +0000 (20:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 20 Feb 2009 20:55:32 +0000 (20:55 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 423382110e12f3844e1753a37dd3d70d80e0ee49..921399ae6f20aff45fcdaa37a63cb8a3928a547d 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -829,6 +829,9 @@ set_cmnd(sudo_mode)
     if (!update_defaults(SETDEF_CMND))
        log_error(NO_STDERR|NO_EXIT, "problem with defaults entries");
 
+    if (!runas_user)
+       set_runaspw(def_runas_default); /* may have been updated above */
+
     return(rval);
 }