From: Todd C. Miller Date: Sat, 15 Dec 2001 00:45:13 +0000 (+0000) Subject: XXX - should call find_path() as runas user, not root. Can't do X-Git-Tag: SUDO_1_6_4~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afe8333fc29514c9d3ee4730262edd8492e748be;p=sudo XXX - should call find_path() as runas user, not root. Can't do that until the parser changes though. --- diff --git a/sudo.c b/sudo.c index 376899f52..8528f6107 100644 --- a/sudo.c +++ b/sudo.c @@ -544,6 +544,7 @@ init_vars(sudo_mode) /* Resolve the path and return. */ if ((sudo_mode & MODE_RUN)) { + /* XXX - should call this as runas user, not root. */ rval = find_path(NewArgv[0], &user_cmnd, user_path); if (rval != FOUND) { /* Failed as root, try as invoking user. */