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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user