intercept_check_policy_req: an empty argv[] is now supported

This commit is contained in:
Todd C. Miller
2022-08-25 14:21:12 -06:00
parent 14356c1940
commit 2902ebe067

View File

@@ -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;
}