* src/groupmems.c: Avoid mixed declarations and code.
This commit is contained in:
parent
81e1dbc90e
commit
046fe0cfe0
@ -5,6 +5,7 @@
|
|||||||
* src/groupmems.c: Do not fail and do not display warnings if a
|
* src/groupmems.c: Do not fail and do not display warnings if a
|
||||||
close failure happens with the --list option. (Files are opened
|
close failure happens with the --list option. (Files are opened
|
||||||
read-only).
|
read-only).
|
||||||
|
* src/groupmems.c: Avoid mixed declarations and code.
|
||||||
|
|
||||||
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
|
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -272,6 +272,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
|
|
||||||
static void check_perms (void)
|
static void check_perms (void)
|
||||||
{
|
{
|
||||||
|
if (!list) {
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
pam_handle_t *pamh = NULL;
|
pam_handle_t *pamh = NULL;
|
||||||
int retval = PAM_SUCCESS;
|
int retval = PAM_SUCCESS;
|
||||||
@ -299,6 +300,7 @@ static void check_perms (void)
|
|||||||
fail_exit (1);
|
fail_exit (1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fail_exit (int code)
|
static void fail_exit (int code)
|
||||||
|
Loading…
Reference in New Issue
Block a user