diff options
author | 1996-08-24 09:32:20 +0000 | |
---|---|---|
committer | 1996-08-24 09:32:20 +0000 | |
commit | 04255fbb967d0f9374193e43353d099b6379055d (patch) | |
tree | 444e613e5df92ee873f1f11a10715c66505018a2 | |
parent | more complete list of bad env variables, and a fancy scanner; thanks to (diff) | |
download | wireguard-openbsd-04255fbb967d0f9374193e43353d099b6379055d.tar.xz wireguard-openbsd-04255fbb967d0f9374193e43353d099b6379055d.zip |
rely on RES_NOALIASES
-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); |