From f4bc42d6372adee9ac46e483458a8b8fbffa7aad Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 20 Feb 2009 20:55:32 +0000 Subject: [PATCH] May need to update the runas user after parsing command-based defaults. --- sudo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sudo.c b/sudo.c index 423382110..921399ae6 100644 --- 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); } -- 2.40.0