diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-19 17:45:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-19 17:45:22 +0000 |
commit | 1e9e82f84b5de8bcd110c41c780f476397c385d9 (patch) | |
tree | 393bb2156fd22447ca97f93585f35498e345cd3f /lib | |
parent | a650bac6a9a49bfba338548237dac8e549a07936 (diff) |
nasty typo by me
Diffstat (limited to 'lib')
-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) |