From: Ulrich Drepper Date: Sat, 23 Aug 1997 21:51:53 +0000 (+0000) Subject: Don't use fstat, use fxstat. X-Git-Tag: cvs/glibc-2_0_5pre5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=703e6213a7a22c3ae01cef3f400eb5657a5929ec;p=thirdparty%2Fglibc.git Don't use fstat, use fxstat. --- diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index 9408e61dbf7..e9fbcdf4bce 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -154,7 +154,7 @@ _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 (__fstat (fd, &st) < 0) + if (__fxstat (_STAT_VER, fd, &st) < 0) result = NULL; else {