From: Joe Landers Date: Fri, 22 Jan 2010 20:44:58 +0000 (-0800) Subject: _nl_load_locale() incorrectly handles mmap() failures X-Git-Tag: upstream/2.30~13050 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b2f25c23374fe79645499b8095f0d2f6eb24f71;p=external%2Fglibc.git _nl_load_locale() incorrectly handles mmap() failures --- diff --git a/ChangeLog b/ChangeLog index 91725d5..28953a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-22 Ulrich Drepper + + * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine + mmap resource problem. Patch by Joe Landers . + 2010-01-22 Jim Meyering [BZ #11193] diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 6ef25b0..61e6f7f 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -224,6 +224,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category) PROT_READ, MAP_FILE|MAP_COPY, fd, 0); if (__builtin_expect (filedata == MAP_FAILED, 0)) { + filedata = NULL; if (__builtin_expect (errno, ENOSYS) == ENOSYS) { #endif /* _POSIX_MAPPED_FILES */