From eb32b0d40308166c4d8f6330cc2958cb1e545075 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 10 Aug 2015 14:12:47 +0200 Subject: Readd O_LARGEFILE flag for openat64 (bug 18781) --- sysdeps/unix/sysv/linux/openat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c index 677712330e..ad8e31d6cf 100644 --- a/sysdeps/unix/sysv/linux/openat.c +++ b/sysdeps/unix/sysv/linux/openat.c @@ -68,6 +68,11 @@ __OPENAT (int fd, const char *file, int oflag, ...) va_end (arg); } + /* We have to add the O_LARGEFILE flag for openat64. */ +#ifdef MORE_OFLAGS + oflag |= MORE_OFLAGS; +#endif + return SYSCALL_CANCEL (openat, fd, file, oflag, mode); } libc_hidden_def (__OPENAT) -- cgit 1.4.1