diff options
author | 2013-06-01 12:38:29 +0000 | |
---|---|---|
committer | 2013-06-01 12:38:29 +0000 | |
commit | f9524f79c8045b6685a83a0e378a9ca2237555e6 (patch) | |
tree | ffbd595852911b5f2a9568b9d1977a419aac24e1 /lib/libc/asr/asr_private.h | |
parent | Add defines for DRM_CAP_PRIME capability. Not implemented, but allows (diff) | |
download | wireguard-openbsd-f9524f79c8045b6685a83a0e378a9ca2237555e6.tar.xz wireguard-openbsd-f9524f79c8045b6685a83a0e378a9ca2237555e6.zip |
Update asr_hostaliases() to make all necessary checks in the function.
Explicitely check for issetguid() before calling getenv(). Also make
asr_hostalias() callable from other parts of asr too.
Diffstat (limited to 'lib/libc/asr/asr_private.h')
-rw-r--r-- | lib/libc/asr/asr_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/asr/asr_private.h b/lib/libc/asr/asr_private.h index 57849ff51bc..9bbcc70c773 100644 --- a/lib/libc/asr/asr_private.h +++ b/lib/libc/asr/asr_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asr_private.h,v 1.19 2013/06/01 09:21:10 eric Exp $ */ +/* $OpenBSD: asr_private.h,v 1.20 2013/06/01 12:38:29 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -322,6 +322,7 @@ char *asr_strdname(const char *, char *, size_t); int asr_iter_db(struct async *); int asr_iter_domain(struct async *, const char *, char *, size_t); int asr_parse_namedb_line(FILE *, char **, int); +char *asr_hostalias(struct asr_ctx *, const char *, char *, size_t); /* <*>_async.h */ struct async *res_query_async_ctx(const char *, int, int, struct asr_ctx *); |