Quiet a PVS-Studio format string warning.

This commit is contained in:
Todd C. Miller
2021-09-02 13:37:36 -06:00
parent 9a9a22e93e
commit f64d71674e

View File

@@ -229,11 +229,13 @@ apply_cmndspec(struct cmndspec *cs)
}
if (user_role != NULL || user_type != NULL) {
if (def_intercept) {
sudo_warnx(U_("SELinux RBAC is not supported when intercept mode is enabled"));
sudo_warnx("%s",
U_("SELinux RBAC is not supported when intercept mode is enabled"));
debug_return_bool(false);
}
if (def_log_subcmds) {
sudo_warnx(U_("SELinux RBAC is not supported when the log_subcmds flag is enabled"));
sudo_warnx("%s",
U_("SELinux RBAC is not supported when the log_subcmds flag is enabled"));
debug_return_bool(false);
}
}