1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
* sysdeps/i370/Implies: Removed.
	* sysdeps/mvs/Implies: Removed.

	* catgets/catgets.c (catopen): Filter out env_var values with / if
	necessary.

	* locale/findlocale.c (_nl_find_locale): Move test for unusable
	locale name after all getenvs.
This commit is contained in:
Ulrich Drepper
2000-08-21 20:58:00 +00:00
parent ce19d41746
commit 63336471f0
5 changed files with 17 additions and 10 deletions

View File

@@ -50,7 +50,8 @@ catopen (const char *cat_name, int flag)
/* Use the LANG environment variable. */
env_var = getenv ("LANG");
if (env_var == NULL)
if (env_var == NULL || *env_var == '\0'
|| (__libc_enable_secure && strchr (env_var, '/') != NULL))
env_var = "C";
env_var_len = strlen (env_var) + 1;