]> granicus.if.org Git - sudo/commitdiff
Fix compilation on systems w/o netgroups.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Jul 2014 12:22:52 +0000 (06:22 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Jul 2014 12:22:52 +0000 (06:22 -0600)
plugins/sudoers/match.c

index 96f7daf8fbbc60acde4e730e3fbe1cf51c91d389..6e3ede0dadaa3273573c8ce3265b5e058e456585 100644 (file)
@@ -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);
 }