mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user