When compiled without AUDIT support, if the return code was E_SUCCESS,

fail_exit() wouldn't have exited. Fix the scope of #idef WITH_AUDIT.
This commit is contained in:
nekral-guest 2007-12-28 09:39:22 +00:00
parent b8650378c1
commit 18a654d13b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
src/groupadd.c cleanup
* src/groupadd.c (fail_exit): When compiled without AUDIT support, if
the return code was E_SUCCESS, fail_exit() wouldn't have exited. Fix
the scope of #idef WITH_AUDIT.
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>
libmisc/copydir.c cleanup

View File

@ -346,8 +346,8 @@ static void fail_exit (int code)
if (is_shadow_grp)
sgr_unlock ();
#endif
if (code != E_SUCCESS)
#ifdef WITH_AUDIT
if (code != E_SUCCESS)
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "adding group",
group_name, -1, 0);
#endif