summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>1996-08-19 17:45:21 +0000
committerderaadt <>1996-08-19 17:45:21 +0000
commit31648f1b070719b9bd7faecf2a0a4637777029b3 (patch)
tree7c397bde23a06b446c4a9da2fb06ed3c40f59fe7
parente05d77aaf17452bebe333901f1acfad893fa05a7 (diff)
downloadopenbsd-31648f1b070719b9bd7faecf2a0a4637777029b3.tar.gz
openbsd-31648f1b070719b9bd7faecf2a0a4637777029b3.tar.bz2
openbsd-31648f1b070719b9bd7faecf2a0a4637777029b3.zip
nasty typo by me
-rw-r--r--src/lib/libc/net/res_query.c4
1 files 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 @@
52 */ 52 */
53 53
54#if defined(LIBC_SCCS) && !defined(lint) 54#if defined(LIBC_SCCS) && !defined(lint)
55static char rcsid[] = "$OpenBSD: res_query.c,v 1.4 1996/08/19 08:29:48 tholo Exp $"; 55static char rcsid[] = "$OpenBSD: res_query.c,v 1.5 1996/08/19 17:45:21 deraadt Exp $";
56#endif /* LIBC_SCCS and not lint */ 56#endif /* LIBC_SCCS and not lint */
57 57
58#include <sys/param.h> 58#include <sys/param.h>
@@ -361,7 +361,7 @@ __hostalias(name)
361 361
362 if (_res.options & RES_NOALIASES) 362 if (_res.options & RES_NOALIASES)
363 return (NULL); 363 return (NULL);
364 if (getuid() != setuid()) 364 if (getuid() != geteuid())
365 return (NULL); 365 return (NULL);
366 file = getenv("HOSTALIASES"); 366 file = getenv("HOSTALIASES");
367 if (file == NULL || (fp = fopen(file, "r")) == NULL) 367 if (file == NULL || (fp = fopen(file, "r")) == NULL)