Change a log_fatal() into log_error() when no auth methods are

configured.  The caller already checks the return value.
This commit is contained in:
Todd C. Miller
2012-08-22 12:51:46 -04:00
parent 2b5d43b8aa
commit 60ba369791

View File

@@ -202,7 +202,7 @@ verify_user(struct passwd *pw, char *prompt, int validated)
/* XXX - check FLAG_DISABLED too */
if (auth_switch[0].name == NULL) {
audit_failure(NewArgv, "no authentication methods");
log_fatal(0,
log_error(0,
_("There are no authentication methods compiled into sudo! "
"If you want to turn off authentication, use the "
"--disable-authentication configure option."));