diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-03-13 15:21:38 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-03-13 15:21:38 -0600 |
commit | 675b043f0c107c29e0d247edb724bef661e5f7fa (patch) | |
tree | 3a3523b4c954ff884cdd7324797deaebc328735a /plugins | |
parent | e584d8fdff8c4f287a6cff28f7435e1ffd60ba52 (diff) | |
download | sudo-675b043f0c107c29e0d247edb724bef661e5f7fa.tar.gz |
Declare domain even if the system lacks innetgr().
Fixes a build error on musl-based systems like Alpine.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sudoers/match.c | 2 |
1 files changed, 0 insertions, 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); |