Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jul 1998 07:29:11 -0500 (CDT)
From:      "Brent J. Nordquist" <bjn@visi.com>
To:        freebsd-alpha@FreeBSD.ORG
Subject:   Alpha patch for lib/libc/net/res_query.c
Message-ID:  <199807091229.HAA09093@bambi.visi.com>

next in thread | raw e-mail | index | archive | help
Here's a patch for the only thing that got between me and "Building
everything.." -- it seems to be in line with the method used in
lib/libc/gen/glob.c e.g.

This is great!  Thanks everyone (especially John B.) for the work put
in to date, and getting me up and running.  On to plunder!

Index: lib/libc/net/res_query.c
===================================================================
RCS file: /var/cvs/src/lib/libc/net/res_query.c,v
retrieving revision 1.16
diff -u -r1.16 res_query.c
--- res_query.c	1998/06/11 09:03:00	1.16
+++ res_query.c	1998/07/09 01:24:22
@@ -379,7 +379,12 @@
 
 	if (_res.options & RES_NOALIASES)
 		return (NULL);
+#ifdef	__NETBSD_SYSCALLS
+	/* XXX issetguid() would be better here, but we don't have that. */
+	if (getuid() != geteuid() || getgid() != getegid())
+#else
 	if (issetugid())
+#endif
 		return (NULL);
 	file = getenv("HOSTALIASES");
 	if (file == NULL || (fp = fopen(file, "r")) == NULL)

-- 
Brent J. Nordquist / bjn@visi.com
W: +1 612 905-7806

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807091229.HAA09093>