From d8e6396c55b9b4b127abc22da096e3ed03445bd8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 13 Mar 2023 15:21:38 -0600 Subject: [PATCH] Declare domain even if the system lacks innetgr(). Fixes a build error on musl-based systems like Alpine. --- plugins/sudoers/match.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 40b7ae614..40cc87b47 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -673,9 +673,7 @@ bool netgr_matches(struct sudo_nss *nss, const char *netgr, const char *lhost, const char *shost, const char *user) { -#ifdef HAVE_INNETGR const char *domain; -#endif bool rc = false; debug_decl(netgr_matches, SUDOERS_DEBUG_MATCH);