From 52ee62236b92ccde18442a32d0d8eee56d60f8d9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 8 Jan 2001 17:55:53 +0000 Subject: [PATCH] Update. * resolv/res_query.c: Use simply getenv() for HOSTALIASES. * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES. --- ChangeLog | 3 +++ localedata/locales/cs_CZ | 6 +++--- resolv/res_query.c | 12 ++++++------ sysdeps/generic/unsecvars.h | 1 + 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0de4132..4c104df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-01-08 Ulrich Drepper + * resolv/res_query.c: Use simply getenv() for HOSTALIASES. + * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES. + * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma. * malloc/memusage.c (me): Use access() to determine whether we diff --git a/localedata/locales/cs_CZ b/localedata/locales/cs_CZ index 19f2687..0b57172 100644 --- a/localedata/locales/cs_CZ +++ b/localedata/locales/cs_CZ @@ -2417,9 +2417,9 @@ abmon "";/ "";/ "" -% Zde jsou zkratky doporuèené poradnou Ústavu pro Jazyk Èeský -% Ano vidíte správnì, jsou to anglické zkratky. Myslím si, ¾e nejsou -% a¾ tak za¾ité, aby se pou¾ívali. Pokud èlovìk nezná celé názvy mìsícù +% Zde jsou zkratky doporuèené poradnou Ústavu pro Jazyk Èeský. +% Ano, vidíte správnì, jsou to anglické zkratky. Myslím si, ¾e nejsou +% a¾ tak za¾ité, aby se pou¾ívaly. Pokud èlovìk nezná celé názvy mìsícù, % tì¾ko tyto zkratky odvozuje. %abmon "";/ % "";/ diff --git a/resolv/res_query.c b/resolv/res_query.c index 00a5e3e..92a90d6 100644 --- a/resolv/res_query.c +++ b/resolv/res_query.c @@ -1,7 +1,7 @@ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -13,7 +13,7 @@ * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -29,14 +29,14 @@ /* * Portions Copyright (c) 1993 by Digital Equipment Corporation. - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies, and that * the name of Digital Equipment Corporation not be used in advertising or * publicity pertaining to distribution of the document or software without * specific, written prior permission. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT @@ -287,7 +287,7 @@ res_nsearch(res_state statp, } /* - * If the name has any dots at all, and no earlier 'as-is' query + * If the name has any dots at all, and no earlier 'as-is' query * for the name, and "." is not on the search list, then try an as-is * query now. */ @@ -371,7 +371,7 @@ res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) { if (statp->options & RES_NOALIASES) return (NULL); - file = __secure_getenv("HOSTALIASES"); + file = getenv("HOSTALIASES"); if (file == NULL || (fp = fopen(file, "r")) == NULL) return (NULL); setbuf(fp, NULL); diff --git a/sysdeps/generic/unsecvars.h b/sysdeps/generic/unsecvars.h index b1469f1..cd08bb8 100644 --- a/sysdeps/generic/unsecvars.h +++ b/sysdeps/generic/unsecvars.h @@ -1,6 +1,7 @@ /* Environment variable to be removed for SUID programs. */ #define UNSECURE_ENVVARS \ "GCONV_PATH", \ + "HOSTALIASES", \ "LOCALDOMAIN", \ "LOCPATH", \ "MALLOC_TRACE", \ -- 2.7.4