Use log_warning() not log_fatal() for the "Invalid authentication
methods compiled into sudo" message. We return -1 on error anyway.
This commit is contained in:
@@ -117,7 +117,7 @@ sudo_auth_init(struct passwd *pw)
|
|||||||
standalone = IS_STANDALONE(&auth_switch[0]);
|
standalone = IS_STANDALONE(&auth_switch[0]);
|
||||||
if (standalone && auth_switch[1].name != NULL) {
|
if (standalone && auth_switch[1].name != NULL) {
|
||||||
audit_failure(NewArgv, N_("invalid authentication methods"));
|
audit_failure(NewArgv, N_("invalid authentication methods"));
|
||||||
log_fatal(0, N_("Invalid authentication methods compiled into sudo! "
|
log_warning(0, N_("Invalid authentication methods compiled into sudo! "
|
||||||
"You may not mix standalone and non-standalone authentication."));
|
"You may not mix standalone and non-standalone authentication."));
|
||||||
debug_return_int(-1);
|
debug_return_int(-1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user