Blame SOURCES/sudo-1.8.6p3-nonehostname.patch

523624
diff -up sudo-1.8.6p3/plugins/sudoers/match.c.nonehostname sudo-1.8.6p3/plugins/sudoers/match.c
523624
--- sudo-1.8.6p3/plugins/sudoers/match.c.nonehostname	2014-05-19 12:50:08.412313041 +0200
523624
+++ sudo-1.8.6p3/plugins/sudoers/match.c	2014-05-19 12:50:17.787348134 +0200
523624
@@ -727,7 +727,8 @@ netgr_matches(char *netgr, char *lhost,
523624
     /* get the domain name (if any) */
523624
     if (!initialized) {
523624
 	domain = (char *) emalloc(MAXHOSTNAMELEN + 1);
523624
-	if (getdomainname(domain, MAXHOSTNAMELEN + 1) == -1 || *domain == '\0') {
523624
+	if (getdomainname(domain, MAXHOSTNAMELEN + 1) == -1 || *domain == '\0'
523624
+	    || strncmp (domain, "(none)", 7) == 0) {
523624
 	    efree(domain);
523624
 	    domain = NULL;
523624
 	}