2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Remove "secure_path" Defaults option since it cannot work with the

existing parser.
This commit is contained in:
Todd C. Miller
2001-12-14 06:40:03 +00:00
parent f590093e46
commit 2e677e1023
8 changed files with 24 additions and 40 deletions

View File

@@ -104,9 +104,11 @@ find_path(infile, outfile, path)
}
/* Use PATH passed in unless SECURE_PATH is in effect. */
if (def_str(I_SECURE_PATH))
path = def_str(I_SECURE_PATH);
else if (path == NULL)
#ifdef SECURE_PATH
if (!user_is_exempt())
path = SECURE_PATH;
#endif /* SECURE_PATH */
if (path == NULL)
return(NOT_FOUND);
path = estrdup(path);
origpath = path;