]> granicus.if.org Git - sudo/commitdiff
Don't apply SECURE_PATH if user is example; jmknoble@pobox.com
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 Jan 2000 04:31:58 +0000 (04:31 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 Jan 2000 04:31:58 +0000 (04:31 +0000)
find_path.c

index be4865904473d98c4233a79558ed18c0926e76b2..dd1609002c0b61cf789aa47995028503ed7f8e5b 100644 (file)
@@ -108,7 +108,7 @@ find_path(infile, outfile)
      * Grab PATH out of the environment (or from the string table
      * if SECURE_PATH is in effect) and make a local copy.
      */
-    if (def_str(I_SECURE_PATH))
+    if (def_str(I_SECURE_PATH) && !user_is_exempt())
        path = def_str(I_SECURE_PATH);
     else if ((path = getenv("PATH")) == NULL)
        return(NOT_FOUND);