diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index e8bc8e547ee..82cd43cce08 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.4 1996/08/19 08:29:48 tholo Exp $"; +static char rcsid[] = "$OpenBSD: res_query.c,v 1.5 1996/08/19 17:45:21 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -361,7 +361,7 @@ __hostalias(name) if (_res.options & RES_NOALIASES) return (NULL); - if (getuid() != setuid()) + if (getuid() != geteuid()) return (NULL); file = getenv("HOSTALIASES"); if (file == NULL || (fp = fopen(file, "r")) == NULL) |