2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

mention why DONT_LEAK_PATH_INFO is not the default

This commit is contained in:
Todd C. Miller
1999-06-14 23:47:56 +00:00
parent 1eab167a30
commit b3cd9b1f96

7
sudo.c
View File

@@ -360,6 +360,13 @@ main(argc, argv)
check_user();
case VALIDATE_NOT_OK_NOPASS:
/*
* We'd like to not leak path info at all here, but that can
* *really* confuse the users. To really close the leak we'd
* have to say "not allowed to run foo" even when the problem
* is just "no foo in path" since the user can trivially set
* their path to just contain a single dir.
*/
#ifndef DONT_LEAK_PATH_INFO
log_error(rtn);
if (cmnd_status == NOT_FOUND_DOT)