mirror of git://sourceware.org/git/glibc.git
_nl_load_locale() incorrectly handles mmap() failures
This commit is contained in:
parent
aef699dce1
commit
8b2f25c233
|
@ -1,3 +1,8 @@
|
||||||
|
2010-01-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
|
||||||
|
mmap resource problem. Patch by Joe Landers <jlanders@vmware.com>.
|
||||||
|
|
||||||
2010-01-22 Jim Meyering <jim@meyering.net>
|
2010-01-22 Jim Meyering <jim@meyering.net>
|
||||||
|
|
||||||
[BZ #11193]
|
[BZ #11193]
|
||||||
|
|
|
@ -224,6 +224,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
|
||||||
PROT_READ, MAP_FILE|MAP_COPY, fd, 0);
|
PROT_READ, MAP_FILE|MAP_COPY, fd, 0);
|
||||||
if (__builtin_expect (filedata == MAP_FAILED, 0))
|
if (__builtin_expect (filedata == MAP_FAILED, 0))
|
||||||
{
|
{
|
||||||
|
filedata = NULL;
|
||||||
if (__builtin_expect (errno, ENOSYS) == ENOSYS)
|
if (__builtin_expect (errno, ENOSYS) == ENOSYS)
|
||||||
{
|
{
|
||||||
#endif /* _POSIX_MAPPED_FILES */
|
#endif /* _POSIX_MAPPED_FILES */
|
||||||
|
|
Loading…
Reference in New Issue