diff options
-rw-r--r-- | src/lib/libc/net/res_query.c | 4 |
1 files changed, 1 insertions, 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 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.5 1996/08/19 17:45:21 deraadt Exp $"; | 55 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.6 1996/08/24 09:32:20 deraadt Exp $"; |
56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ |
57 | 57 | ||
58 | #include <sys/param.h> | 58 | #include <sys/param.h> |
@@ -361,8 +361,6 @@ __hostalias(name) | |||
361 | 361 | ||
362 | if (_res.options & RES_NOALIASES) | 362 | if (_res.options & RES_NOALIASES) |
363 | return (NULL); | 363 | return (NULL); |
364 | if (getuid() != geteuid()) | ||
365 | return (NULL); | ||
366 | file = getenv("HOSTALIASES"); | 364 | file = getenv("HOSTALIASES"); |
367 | if (file == NULL || (fp = fopen(file, "r")) == NULL) | 365 | if (file == NULL || (fp = fopen(file, "r")) == NULL) |
368 | return (NULL); | 366 | return (NULL); |