intercept_check_policy_req: an empty argv[] is now supported
This commit is contained in:
@@ -539,7 +539,7 @@ intercept_check_policy_req(PolicyCheckRequest *req,
|
||||
size_t n;
|
||||
debug_decl(intercept_check_policy_req, SUDO_DEBUG_EXEC);
|
||||
|
||||
if (req->command == NULL || req->n_argv == 0) {
|
||||
if (req->command == NULL) {
|
||||
closure->errstr = N_("invalid PolicyCheckRequest");
|
||||
goto done;
|
||||
}
|
||||
|
Reference in New Issue
Block a user