From 31648f1b070719b9bd7faecf2a0a4637777029b3 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 19 Aug 1996 17:45:21 +0000 Subject: nasty typo by me --- src/lib/libc/net/res_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index e8bc8e547e..82cd43cce0 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/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 @@ -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) -- cgit v1.2.3-55-g6feb