diff --git a/ChangeLog b/ChangeLog index 1b55c547..6d15f22f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-07-27 Nicolas François + + * src/groupmems.c: Replace an if test by an else. + 2008-07-27 Nicolas François * src/groupmems.c: Ignore the return value of fputs(). diff --git a/src/groupmems.c b/src/groupmems.c index 24658572..3c7facdc 100644 --- a/src/groupmems.c +++ b/src/groupmems.c @@ -181,9 +181,7 @@ static void check_perms (void) pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */ if (NULL == pampw) { retval = PAM_USER_UNKNOWN; - } - - if (PAM_SUCCESS == retval) { + } else { retval = pam_start ("groupmod", pampw->pw_name, &conv, &pamh); }