From owner-freebsd-alpha Thu Jul 9 05:29:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA07531 for freebsd-alpha-outgoing; Thu, 9 Jul 1998 05:29:15 -0700 (PDT) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from mixer.visi.com (root@mixer.visi.com [209.98.98.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA07526 for ; Thu, 9 Jul 1998 05:29:14 -0700 (PDT) (envelope-from nordquis@visi.com) Received: from bambi.visi.com (nordquis@bambi.visi.com [209.98.98.24]) by mixer.visi.com (8.8.8/8.7.5) with ESMTP id HAA21439 for ; Thu, 9 Jul 1998 07:29:12 -0500 (CDT) Received: (from nordquis@localhost) by bambi.visi.com (8.8.5/8.6.12) id HAA09093 for freebsd-alpha@freebsd.org; Thu, 9 Jul 1998 07:29:11 -0500 (CDT) Posted-Date: Thu, 9 Jul 1998 07:29:11 -0500 (CDT) Message-Id: <199807091229.HAA09093@bambi.visi.com> Subject: Alpha patch for lib/libc/net/res_query.c To: freebsd-alpha@FreeBSD.ORG Date: Thu, 9 Jul 1998 07:29:11 -0500 (CDT) From: "Brent J. Nordquist" Reply-to: "Brent J. Nordquist" X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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