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