Declare domain even if the system lacks innetgr().
Fixes a build error on musl-based systems like Alpine.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user