From 0c1ca49be334a6583fa1b994525b23ea4b1edc59 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 2 Sep 2023 16:19:58 +0200 Subject: [PATCH] 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 --- src/gpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpasswd.c b/src/gpasswd.c index 57b9fc0b0..bab9bf193 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -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(); -- 2.47.2