summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_query.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-08-19 17:45:21 +0000
committerderaadt <deraadt@openbsd.org>1996-08-19 17:45:21 +0000
commitcd41676c066f5d26bd8aaeda4ce21bae8d210c27 (patch)
tree2263e432d60db1e03f57591a94856d4e2de9c2f8 /lib/libc/net/res_query.c
parentWe need a malloc prototype for alphas (diff)
downloadwireguard-openbsd-cd41676c066f5d26bd8aaeda4ce21bae8d210c27.tar.xz
wireguard-openbsd-cd41676c066f5d26bd8aaeda4ce21bae8d210c27.zip
nasty typo by me
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r--lib/libc/net/res_query.c4
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)