From: Todd C. Miller Date: Thu, 27 Jan 2000 04:31:58 +0000 (+0000) Subject: Don't apply SECURE_PATH if user is example; jmknoble@pobox.com X-Git-Tag: SUDO_1_6_3~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bffb27280b754a3b1aff1a2d188e0e7396666187;p=sudo Don't apply SECURE_PATH if user is example; jmknoble@pobox.com --- diff --git a/find_path.c b/find_path.c index be4865904..dd1609002 100644 --- a/find_path.c +++ b/find_path.c @@ -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);