diff options
| author | deraadt <> | 1996-08-24 09:32:20 +0000 |
|---|---|---|
| committer | deraadt <> | 1996-08-24 09:32:20 +0000 |
| commit | 2e29f3fc5238fd8757ae3420145f21ed815140b1 (patch) | |
| tree | 8bfcad83ab2f1de9cb9210c11b816281bcc9f3af /src/lib/libc | |
| parent | c943c8e773152f1540f11a9920f8bfad9e00e3a8 (diff) | |
| download | openbsd-2e29f3fc5238fd8757ae3420145f21ed815140b1.tar.gz openbsd-2e29f3fc5238fd8757ae3420145f21ed815140b1.tar.bz2 openbsd-2e29f3fc5238fd8757ae3420145f21ed815140b1.zip | |
rely on RES_NOALIASES
Diffstat (limited to 'src/lib/libc')
| -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); |
