Skip to content

Commit

Permalink
_nl_load_locale() incorrectly handles mmap() failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Landers authored and Ulrich Drepper committed Jan 22, 2010
1 parent aef699d commit 8b2f25c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

[BZ #11193]
Expand Down
1 change: 1 addition & 0 deletions locale/loadlocale.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8b2f25c

Please sign in to comment.