diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-18 19:07:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-18 19:07:28 +0000 |
commit | 5ccde282dd76a373893304c6c650e3a68ec912ca (patch) | |
tree | 9c93dcb9ff3c59e4553551e01aa0809edf5be022 /lib/libc/net/res_query.c | |
parent | 90b9c9d4e0e6266778e0962784c954121db43636 (diff) |
if setuid, no env variables
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r-- | lib/libc/net/res_query.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index 81c4d3194d3..61b6cb35c9b 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -368,6 +368,8 @@ __hostalias(name) if (_res.options & RES_NOALIASES) return (NULL); + if (getuid() != setuid()) + return (NULL); file = getenv("HOSTALIASES"); if (file == NULL || (fp = fopen(file, "r")) == NULL) return (NULL); |