]> granicus.if.org Git - shadow/commitdiff
Fix build failure when configured with audit support. Thanks to Mike
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 16 Apr 2008 22:04:46 +0000 (22:04 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 16 Apr 2008 22:04:46 +0000 (22:04 +0000)
Frysinger for reporting it.

ChangeLog
NEWS
src/newgrp.c

index ac6fef85d32792b1b8e4850baa8b1fb20d849ea7..bf94b05fde824a9f367790d8e527c7b1fc84e37e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-17  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * NEWS, src/newgrp.c: Fix compilation failure when compiled with
+       audit support. Thanks to Mike Frysinger for reporting it.
+
 2008-04-16  Nicolas François  <nicolas.francois@centraliens.net>
 
        Ensure that getpwent() is used in setpwent(), getpwent(),
diff --git a/NEWS b/NEWS
index 440f4db7c81ee8205d64bc281eedf1b98baeb3ee..424c3078be3d10081eab8dbef480634190ab0337 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ shadow-4.1.1 -> shadow-4.1.2                                            UNRELEASED
   * Fix the detection of the audit, pam, and selinux library and header
     file; and fail if the feature is requested but not present on the
     system.
+  * Fix build failure when configured with audit support.
 
 shadow-4.1.0 -> shadow-4.1.1                                           02-04-2008
 
index 3f07a4ed19c704cb6f102506ba50a23d6610b101..b38596278dd97fd3394668085129473d1cb47c68 100644 (file)
@@ -53,6 +53,10 @@ static GETGROUPS_T *grouplist;
 static char *Prog;
 static int is_newgrp;
 
+#ifdef WITH_AUDIT
+char audit_buf[80];
+#endif
+
 /* local function prototypes */
 static void usage (void);
 static void check_perms (const struct group *grp,
@@ -349,8 +353,6 @@ int main (int argc, char **argv)
 #endif
 
 #ifdef WITH_AUDIT
-       char audit_buf[80];
-
        audit_help_open ();
 #endif
        setlocale (LC_ALL, "");