* src/groupmems.c: Avoid mixed declarations and code.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 31 Aug 2008 17:29:17 +0000 (17:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 31 Aug 2008 17:29:17 +0000 (17:29 +0000)
ChangeLog
src/groupmems.c

index c49f6fb3f95545b5ff6a715ea985f5eb2fe916fe..e17737280eafad7efab07dcff30986133ba34856 100644 (file)
--- 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  <nicolas.francois@centraliens.net>
 
index 91fba61e9e32c94e0c0ea13d9928043a3925df81..bc81a1289d683ef6288835bf75c21fa4a0049166 100644 (file)
@@ -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)