From 2e29f3fc5238fd8757ae3420145f21ed815140b1 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 24 Aug 1996 09:32:20 +0000 Subject: rely on RES_NOALIASES --- src/lib/libc/net/res_query.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index 82cd43cce0..8fa987ad6b 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/lib/libc/net/res_query.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: res_query.c,v 1.5 1996/08/19 17:45:21 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: res_query.c,v 1.6 1996/08/24 09:32:20 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -361,8 +361,6 @@ __hostalias(name) if (_res.options & RES_NOALIASES) return (NULL); - if (getuid() != geteuid()) - return (NULL); file = getenv("HOSTALIASES"); if (file == NULL || (fp = fopen(file, "r")) == NULL) return (NULL); -- cgit v1.2.3-55-g6feb