]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - glibc/patches/glibc-rh827510.patch
c_icap: Rebuild against libdb
[people/amarx/ipfire-3.x.git] / glibc / patches / glibc-rh827510.patch
1 2012-06-14 Jeff Law <law@redhat.com>
2
3
4 * locale/loadlocale.c (_nl_load_locale): Delay setting
5 file->decided until we have successfully loaded the file's
6 data.
7
8 diff --git a/locale/loadlocale.c b/locale/loadlocale.c
9 index e3fa187..9fd9216 100644
10 --- a/locale/loadlocale.c
11 +++ b/locale/loadlocale.c
12 @@ -169,7 +169,6 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
13 int save_err;
14 int alloc = ld_mapped;
15
16 - file->decided = 1;
17 file->data = NULL;
18
19 fd = open_not_cancel_2 (file->filename, O_RDONLY | O_CLOEXEC);
20 @@ -278,6 +277,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
21 newdata->alloc = alloc;
22
23 file->data = newdata;
24 + file->decided = 1;
25 }
26
27 void