]> granicus.if.org Git - sudo/commitdiff
XXX - should call find_path() as runas user, not root. Can't do
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Dec 2001 00:45:13 +0000 (00:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Dec 2001 00:45:13 +0000 (00:45 +0000)
that until the parser changes though.

sudo.c

diff --git a/sudo.c b/sudo.c
index 376899f52e357eef7e5e9b78bb4b7321fc9d12dd..8528f6107b98efa7f1943c9174d73750e02f8f77 100644 (file)
--- 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. */