2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Declare domain even if the system lacks innetgr().

Fixes a build error on musl-based systems like Alpine.
This commit is contained in:
Todd C. Miller 2023-03-13 15:21:38 -06:00
parent 918af413f3
commit d8e6396c55

View File

@ -673,9 +673,7 @@ bool
netgr_matches(struct sudo_nss *nss, const char *netgr, netgr_matches(struct sudo_nss *nss, const char *netgr,
const char *lhost, const char *shost, const char *user) const char *lhost, const char *shost, const char *user)
{ {
#ifdef HAVE_INNETGR
const char *domain; const char *domain;
#endif
bool rc = false; bool rc = false;
debug_decl(netgr_matches, SUDOERS_DEBUG_MATCH); debug_decl(netgr_matches, SUDOERS_DEBUG_MATCH);