[Pkg-shadow-commits] r1976 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Wed Apr 16 22:04:46 UTC 2008


Author: nekral-guest
Date: 2008-04-16 22:04:46 +0000 (Wed, 16 Apr 2008)
New Revision: 1976

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/NEWS
   upstream/trunk/src/newgrp.c
Log:
Fix build failure when configured with audit support. Thanks to Mike
Frysinger for reporting it.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-04-16 22:03:43 UTC (rev 1975)
+++ upstream/trunk/ChangeLog	2008-04-16 22:04:46 UTC (rev 1976)
@@ -1,3 +1,8 @@
+2008-04-17  Nicolas François  <nicolas.francois at 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 at centraliens.net>
 
 	Ensure that getpwent() is used in setpwent(), getpwent(),

Modified: upstream/trunk/NEWS
===================================================================
--- upstream/trunk/NEWS	2008-04-16 22:03:43 UTC (rev 1975)
+++ upstream/trunk/NEWS	2008-04-16 22:04:46 UTC (rev 1976)
@@ -8,6 +8,7 @@
   * 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
 

Modified: upstream/trunk/src/newgrp.c
===================================================================
--- upstream/trunk/src/newgrp.c	2008-04-16 22:03:43 UTC (rev 1975)
+++ upstream/trunk/src/newgrp.c	2008-04-16 22:04:46 UTC (rev 1976)
@@ -53,6 +53,10 @@
 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 @@
 #endif
 
 #ifdef WITH_AUDIT
-	char audit_buf[80];
-
 	audit_help_open ();
 #endif
 	setlocale (LC_ALL, "");




More information about the Pkg-shadow-commits mailing list