summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)