]> granicus.if.org Git - shadow/commitdiff
When compiled without AUDIT support, if the return code was E_SUCCESS,
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 09:39:22 +0000 (09:39 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 09:39:22 +0000 (09:39 +0000)
fail_exit() wouldn't have exited. Fix the scope of #idef WITH_AUDIT.

ChangeLog
src/groupadd.c

index 49e895903905ac23df187775fa53a16119cdd5d5..251902b3aaf3b7d3a7f7ba25e2a0641c62b36e15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 4dae0d04f4b6f25bc13f94f4ac990cb5847e0647..8b47653c99ddf56a53506cc51880270a81975cb9 100644 (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