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:
parent
b8650378c1
commit
18a654d13b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user