From 046fe0cfe013ebe69a524980898329e4468e3c08 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 31 Aug 2008 17:29:17 +0000 Subject: [PATCH] * src/groupmems.c: Avoid mixed declarations and code. --- ChangeLog | 1 + src/groupmems.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index c49f6fb3..e1773728 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * src/groupmems.c: Do not fail and do not display warnings if a close failure happens with the --list option. (Files are opened read-only). + * src/groupmems.c: Avoid mixed declarations and code. 2008-08-29 Nicolas François diff --git a/src/groupmems.c b/src/groupmems.c index 91fba61e..bc81a128 100644 --- a/src/groupmems.c +++ b/src/groupmems.c @@ -272,6 +272,7 @@ static void process_flags (int argc, char **argv) static void check_perms (void) { + if (!list) { #ifdef USE_PAM pam_handle_t *pamh = NULL; int retval = PAM_SUCCESS; @@ -299,6 +300,7 @@ static void check_perms (void) fail_exit (1); } #endif + } } static void fail_exit (int code)