From f9524f79c8045b6685a83a0e378a9ca2237555e6 Mon Sep 17 00:00:00 2001 From: eric Date: Sat, 1 Jun 2013 12:38:29 +0000 Subject: 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. --- lib/libc/asr/asr_private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/asr/asr_private.h') 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 * @@ -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 *); -- cgit v1.2.3-59-g8ed1b