From: Todd C. Miller Date: Mon, 28 Jul 2014 12:22:52 +0000 (-0600) Subject: Fix compilation on systems w/o netgroups. X-Git-Tag: SUDO_1_8_11^2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d058611bd6dd1bb9c6a9ce0b92d461e7440db563;p=sudo Fix compilation on systems w/o netgroups. --- diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 96f7daf8f..6e3ede0da 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -972,12 +972,12 @@ netgr_matches(const char *netgr, const char *lhost, const char *shost, const cha rc = true; else if (lhost != shost && innetgr(netgr, shost, user, domain)) rc = true; -#endif /* HAVE_INNETGR */ sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO, "netgroup %s matches (%s|%s, %s, %s): %s", netgr, lhost ? lhost : "", shost ? shost : "", user ? user : "", domain ? domain : "", rc ? "true" : "false"); +#endif /* HAVE_INNETGR */ debug_return_bool(rc); }