]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(DCGETTEXT): Remove _nl_find_language in code to determine invalid
authorUlrich Drepper <drepper@redhat.com>
Sun, 27 Aug 2000 18:46:15 +0000 (18:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 27 Aug 2000 18:46:15 +0000 (18:46 +0000)
locale name.

intl/dcgettext.c

index cc5299e460b86d5f87645b67022a4c3e1ad92534..30c5154bcc75161f66a84ffee2600e31a595461c 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the dcgettext(3) function.
-   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1995,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.
@@ -372,9 +372,7 @@ DCGETTEXT (domainname, msgid, 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;
        }