Fix build failure when configured with audit support. Thanks to Mike
Frysinger for reporting it.
This commit is contained in:
parent
2542732a0c
commit
4d7d6a1a9f
@ -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>
|
2008-04-16 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
Ensure that getpwent() is used in setpwent(), getpwent(),
|
Ensure that getpwent() is used in setpwent(), getpwent(),
|
||||||
|
1
NEWS
1
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
|
* 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
|
file; and fail if the feature is requested but not present on the
|
||||||
system.
|
system.
|
||||||
|
* Fix build failure when configured with audit support.
|
||||||
|
|
||||||
shadow-4.1.0 -> shadow-4.1.1 02-04-2008
|
shadow-4.1.0 -> shadow-4.1.1 02-04-2008
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ static GETGROUPS_T *grouplist;
|
|||||||
static char *Prog;
|
static char *Prog;
|
||||||
static int is_newgrp;
|
static int is_newgrp;
|
||||||
|
|
||||||
|
#ifdef WITH_AUDIT
|
||||||
|
char audit_buf[80];
|
||||||
|
#endif
|
||||||
|
|
||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
static void usage (void);
|
static void usage (void);
|
||||||
static void check_perms (const struct group *grp,
|
static void check_perms (const struct group *grp,
|
||||||
@ -349,8 +353,6 @@ int main (int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_AUDIT
|
#ifdef WITH_AUDIT
|
||||||
char audit_buf[80];
|
|
||||||
|
|
||||||
audit_help_open ();
|
audit_help_open ();
|
||||||
#endif
|
#endif
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user