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