summaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-27 18:45:00 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-27 18:45:00 +0000
commit4944d5d63f26970c9a65965f907e49d30bf53ca6 (patch)
treefeed0f263659675bf76f40d3fd1a9dbdfc19a3cd /intl
parentb4f48b41b478c9344ab81bfb82785b5736e6aafc (diff)
downloadglibc-4944d5d63f26970c9a65965f907e49d30bf53ca6.tar.gz
Update.
* intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code to determine invalid locale name. * locale/findlocale.c (_nl_find_locale): Likewise.
Diffstat (limited to 'intl')
-rw-r--r--intl/dcigettext.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index c69bb19bc8..864b787cea 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -525,9 +525,7 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
/* When this is a SUID binary we must not allow accessing files
outside the dedicated directories. */
if (ENABLE_SECURE
- && (memchr (single_locale, '/',
- _nl_find_language (single_locale) - single_locale)
- != NULL))
+ && memchr (single_locale, '/', single_locale) != NULL)
/* Ingore this entry. */
continue;
}