/[smeserver]/rpms/sudo/sme9/sudo-1.8.6p3-nonehostname.patch
ViewVC logotype

Annotation of /rpms/sudo/sme9/sudo-1.8.6p3-nonehostname.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Feb 4 19:44:26 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: sudo-1_8_6p3-30_el6_sme, sudo-1_8_6p3-29_el6_9, HEAD
Sudo

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     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed