From b9616a4d2d0ff113b95a638127ad27c98e6c713b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 16 Nov 2005 08:40:33 +0000 Subject: Updated to fedora-glibc-20051116T0829 --- sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/wordsize-64') diff --git a/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c b/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c index 70e73571f7..faa028cf26 100644 --- a/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c +++ b/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -70,7 +71,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag) res = INTERNAL_SYSCALL (stat, err, 2, file, CHECK_1 (st)); if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0)) - __atfct_seterrno (INTERNAL_SYSCALL_ERRNO (res, err), fd, buf); + { + __atfct_seterrno (INTERNAL_SYSCALL_ERRNO (res, err), fd, buf); + res = -1; + } return res; } -- cgit v1.2.3