command_matches: avoid printf("%s") of NULL in debug for sudo ALL.

This commit is contained in:
Todd C. Miller
2021-08-25 13:11:57 -06:00
parent 9980357a73
commit 0aedc965f8

View File

@@ -719,6 +719,7 @@ command_matches(const char *sudoers_cmnd, const char *sudoers_args,
}
if (sudoers_cmnd == NULL) {
sudoers_cmnd = "ALL";
rc = command_matches_all(runchroot, intercepted, digests);
goto done;
}