From 8a73a967e18c55199785bae0f22dc94d9b2f8985 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 27 Nov 2018 15:41:37 +0100 Subject: statfs.h: sync generic header with glibc Fix issues with aarch64 and df with mismatching header between kernel and libc. --- libc/sysdeps/linux/common/fstatfs.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libc/sysdeps/linux/common/fstatfs.c') diff --git a/libc/sysdeps/linux/common/fstatfs.c b/libc/sysdeps/linux/common/fstatfs.c index fcb0820eb..0b2709ce3 100644 --- a/libc/sysdeps/linux/common/fstatfs.c +++ b/libc/sysdeps/linux/common/fstatfs.c @@ -30,15 +30,6 @@ _syscall2(int, __libc_fstatfs, int, fd, struct statfs *, buf) int __libc_fstatfs (int __fildes, struct statfs *__buf) { int err = INLINE_SYSCALL(fstatfs64, 3, __fildes, sizeof(*__buf), __buf); - - if (err == 0) { - /* Did we overflow? */ - if (__buf->__pad1 || __buf->__pad2 || __buf->__pad3 || - __buf->__pad4 || __buf->__pad5) { - __set_errno(EOVERFLOW); - return -1; - } - } return err; }; /* Redefined fstatfs because we need it for backwards compatibility */ -- cgit v1.2.3