arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh827510.patch

147e83
2012-06-14  Jeff Law  <law@redhat.com>
147e83
147e83
147e83
	* locale/loadlocale.c (_nl_load_locale): Delay setting
147e83
	file->decided until we have successfully loaded the file's
147e83
	data.
147e83
147e83
diff --git glibc-2.17-c758a686/locale/loadlocale.c glibc-2.17-c758a686/locale/loadlocale.c
147e83
index e3fa187..9fd9216 100644
147e83
--- glibc-2.17-c758a686/locale/loadlocale.c
147e83
+++ glibc-2.17-c758a686/locale/loadlocale.c
147e83
@@ -169,7 +169,6 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
147e83
   int save_err;
147e83
   int alloc = ld_mapped;
147e83
 
147e83
-  file->decided = 1;
147e83
   file->data = NULL;
147e83
 
147e83
   fd = open_not_cancel_2 (file->filename, O_RDONLY | O_CLOEXEC);
147e83
@@ -278,6 +277,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
147e83
   newdata->alloc = alloc;
147e83
 
147e83
   file->data = newdata;
147e83
+  file->decided = 1;
147e83
 }
147e83
 
147e83
 void