about summary refs log tree commit diff
path: root/catgets/catgets.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-21 20:58:00 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-21 20:58:00 +0000
commit63336471f0e705e7259c9ecb0f9b473890ff5ffc (patch)
treeb23b64b55ace8424e3898f8f8278a79527cd22c0 /catgets/catgets.c
parentce19d4174684e225e3c70ceca4557af6dc651317 (diff)
downloadglibc-63336471f0e705e7259c9ecb0f9b473890ff5ffc.tar.gz
glibc-63336471f0e705e7259c9ecb0f9b473890ff5ffc.tar.xz
glibc-63336471f0e705e7259c9ecb0f9b473890ff5ffc.zip
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.
Diffstat (limited to 'catgets/catgets.c')
-rw-r--r--catgets/catgets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/catgets/catgets.c b/catgets/catgets.c
index 86ff0ff831..cad515d81a 100644
--- a/catgets/catgets.c
+++ b/catgets/catgets.c
@@ -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;