Eliminate calls to fatal()/fatalx()/log_fatal() in env.c and just

pass back a return value.
This commit is contained in:
Todd C. Miller
2014-04-30 16:57:12 -06:00
parent e45b388a37
commit 5086194c67
6 changed files with 141 additions and 67 deletions

View File

@@ -93,7 +93,8 @@ sudo_aix_cleanup(struct passwd *pw, sudo_auth *auth)
debug_decl(sudo_aix_cleanup, SUDO_DEBUG_AUTH)
/* Unset AUTHSTATE as it may not be correct for the runas user. */
sudo_unsetenv("AUTHSTATE");
if (sudo_unsetenv("AUTHSTATE") == -1)
debug_return_int(AUTH_FAILURE);
debug_return_int(AUTH_SUCCESS);
}