src/gpasswd.c: Reduce scope of cpp conditional
This prepares for the next patch, which will invert the logic of the conditional. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
9035f90510
commit
0c1ca49be3
@@ -712,7 +712,6 @@ static void check_perms (const struct group *gr)
|
||||
} else
|
||||
#endif /* SHADOWGRP */
|
||||
if (!amroot) {
|
||||
#ifdef FIRST_MEMBER_IS_ADMIN
|
||||
/*
|
||||
* The policy here for changing a group is that
|
||||
* 1) you must be root or
|
||||
@@ -727,6 +726,7 @@ static void check_perms (const struct group *gr)
|
||||
* first group member might be just a normal user.
|
||||
* --marekm
|
||||
*/
|
||||
#if defined(FIRST_MEMBER_IS_ADMIN)
|
||||
if (gr->gr_mem[0] == NULL)
|
||||
failure();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user