diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libc/net/res_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index fcb3954009..4f3665f276 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/lib/libc/net/res_query.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: res_query.c,v 1.8 1997/03/13 19:07:40 downsj Exp $ */ | 1 | /* $OpenBSD: res_query.c,v 1.9 1997/04/06 07:55:04 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * ++Copyright++ 1988, 1993 | 4 | * ++Copyright++ 1988, 1993 |
| @@ -60,7 +60,7 @@ | |||
| 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; |
| 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; |
| 62 | #else | 62 | #else |
| 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.8 1997/03/13 19:07:40 downsj Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.9 1997/04/06 07:55:04 deraadt Exp $"; |
| 64 | #endif | 64 | #endif |
| 65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
| 66 | 66 | ||
| @@ -362,7 +362,7 @@ hostalias(name) | |||
| 362 | if (_res.options & RES_NOALIASES) | 362 | if (_res.options & RES_NOALIASES) |
| 363 | return (NULL); | 363 | return (NULL); |
| 364 | file = getenv("HOSTALIASES"); | 364 | file = getenv("HOSTALIASES"); |
| 365 | if (file == NULL || (fp = fopen(file, "r")) == NULL) | 365 | if (issetugid() != 0 || file == NULL || (fp = fopen(file, "r")) == NULL) |
| 366 | return (NULL); | 366 | return (NULL); |
| 367 | setbuf(fp, NULL); | 367 | setbuf(fp, NULL); |
| 368 | buf[sizeof(buf) - 1] = '\0'; | 368 | buf[sizeof(buf) - 1] = '\0'; |
