command_matches: avoid printf("%s") of NULL in debug for sudo ALL.
This commit is contained in:
@@ -719,6 +719,7 @@ command_matches(const char *sudoers_cmnd, const char *sudoers_args,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sudoers_cmnd == NULL) {
|
if (sudoers_cmnd == NULL) {
|
||||||
|
sudoers_cmnd = "ALL";
|
||||||
rc = command_matches_all(runchroot, intercepted, digests);
|
rc = command_matches_all(runchroot, intercepted, digests);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user