diff --git a/plugins/sudoers/stubs.c b/plugins/sudoers/stubs.c index fb1e975af..fcb0889d8 100644 --- a/plugins/sudoers/stubs.c +++ b/plugins/sudoers/stubs.c @@ -84,7 +84,8 @@ get_interfaces(void) int set_cmnd_path(const char *runchroot) { - return FOUND; + /* Cannot return FOUND without also setting user_cmnd to a new value. */ + return NOT_FOUND; } /* STUB */ diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index ebe489e57..a5342edb8 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -502,7 +502,8 @@ init_eventlog_config(void) int set_cmnd_path(const char *runchroot) { - return FOUND; + /* Cannot return FOUND without also setting user_cmnd to a new value. */ + return NOT_FOUND; } static bool