Correct error message when command doesn't exist in intercept mode.
Previously, we would always use EACCES, even when ENOENT was appropriate. This also affected log_subcmds.
This commit is contained in:
@@ -407,7 +407,7 @@ intercept_check_policy(const char *command, int argc, char **argv, int envc,
|
||||
*/
|
||||
if (stat(command, &sb) == -1) {
|
||||
closure->errstr = NULL;
|
||||
closure->state = POLICY_REJECT;
|
||||
closure->state = POLICY_ERROR;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user