]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix searching localedef input on I18NPATH (BZ #16984)
authorAndreas Schwab <schwab@suse.de>
Mon, 26 May 2014 10:31:13 +0000 (12:31 +0200)
committerAndreas Schwab <schwab@suse.de>
Mon, 26 May 2014 10:32:57 +0000 (12:32 +0200)
ChangeLog
NEWS
locale/programs/locfile.c
locale/programs/repertoire.c

index 823bb40108aec9e62c781a32a7d4f021c0ddd245..a7be30e9a384bb21ff0779d37122e8c09655ddd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-05-26  Andreas Schwab  <schwab@suse.de>
+
+       [BZ #16984]
+       * locale/programs/repertoire.c (repertoire_read): Add slash
+       between I18NPATH element and file name.
+       * locale/programs/locfile.c (locfile_read): Likewise.
+
 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
 
        * nptl/pthread_mutexattr_settype.c
diff --git a/NEWS b/NEWS
index 35914ea09abac52f38f0a42b473252988f9cb77e..64d2fbb915f6fc9cf335bafc82274d5aea319292 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,7 +18,7 @@ Version 2.20
   16760, 16770, 16786, 16789, 16791, 16796, 16799, 16800, 16815, 16823,
   16824, 16831, 16838, 16849, 16854, 16876, 16877, 16878, 16885, 16888,
   16890, 16912, 16915, 16916, 16917, 16922, 16927, 16928, 16932, 16943,
-  16958, 16966, 16967, 16965, 16977, 16978.
+  16958, 16966, 16967, 16965, 16977, 16978, 16984.
 
 * The minimum Linux kernel version that this version of the GNU C Library
   can be used with is 2.6.32.
index de6b426f0cb41b2c79d92186aeaa3dfb889725cd..1c4fe854e08b8040ec99ca9ac259f4900be0f995 100644 (file)
@@ -84,7 +84,7 @@ locfile_read (struct localedef_t *result, const struct charmap_t *charmap)
 
                  if (ldfile == NULL)
                    {
-                     stpcpy (stpcpy (path, next), filename);
+                     stpcpy (stpcpy (stpcpy (path, next), "/"), filename);
 
                      ldfile = lr_open (path, locfile_hash);
                    }
index 28e4bcc15fcfd4e33975cf1fd50378389250edf2..545ac90bd7aa7142822dc86cb9992098a95631b3 100644 (file)
@@ -96,7 +96,7 @@ repertoire_read (const char *filename)
 
                  if (repfile == NULL)
                    {
-                     stpcpy (stpcpy (path, next), filename);
+                     stpcpy (stpcpy (stpcpy (path, next), "/"), filename);
 
                      repfile = lr_open (path, repertoiremap_hash);
                    }