From 1e9e82f84b5de8bcd110c41c780f476397c385d9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 19 Aug 1996 17:45:22 +0000 Subject: nasty typo by me --- lib/libc/net/res_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc') 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 @@ -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