From 49891c106244888123557fca7fddda4fa1f96b1d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Jan 1998 19:46:25 +0000 Subject: Use most recent localedata from glibc-2.0.91. 1997-10-09 04:56 Ulrich Drepper * locales/is_IS: Update from Debian version. 1997-08-29 03:16 Ulrich Drepper * tst-fmon.c: New file. strfmon test program. * tst-fmon.sh: New file. Script to run strfmon test. * fmon-de_DE.exp: New file. Expected result of strfmon test for de_DE. * fmon-en_US.exp: New file. Expected result of strfmon test for en_US. * locales/cs_CZ: Update from author. --- elf/dl-misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'elf/dl-misc.c') diff --git a/elf/dl-misc.c b/elf/dl-misc.c index 0894a72..86a0c63 100644 --- a/elf/dl-misc.c +++ b/elf/dl-misc.c @@ -1,5 +1,5 @@ /* Miscellaneous support functions for dynamic linker - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -47,7 +47,9 @@ _dl_sysdep_read_whole_file (const char *file, size_t *sizep, int prot) int fd = __open (file, O_RDONLY); if (fd < 0) return NULL; - if (__fxstat (_STAT_VER, fd, &st) < 0) + if (__fxstat (_STAT_VER, fd, &st) < 0 + /* No need to map the file if it is empty. */ + || st.st_size == 0) result = NULL; else { -- cgit v1.1