diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-24 09:32:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-24 09:32:21 +0000 |
commit | d4219a6feccdaeed01d61ebb87430102ff768ce0 (patch) | |
tree | 1a62119ba7e0a58cf85a551bb8ed48cba6933bcb /lib/libc/net | |
parent | 19977aa7ffbdba2250dfa025252fc2749266acbe (diff) |
rely on RES_NOALIASES
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/res_query.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index 82cd43cce08..8fa987ad6b6 100644 --- a/lib/libc/net/res_query.c +++ b/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 <sys/param.h> @@ -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); |