about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/openat.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-08-10 14:12:47 +0200
committerAndreas Schwab <schwab@suse.de>2015-08-10 18:10:19 +0200
commiteb32b0d40308166c4d8f6330cc2958cb1e545075 (patch)
tree166e97f5cc58b9e6d18a4da5742ff5fc9e9a836b /sysdeps/unix/sysv/linux/openat.c
parentd0649b2d8efca33363e399f1ba07d77e85901cfc (diff)
downloadglibc-eb32b0d40308166c4d8f6330cc2958cb1e545075.tar.gz
glibc-eb32b0d40308166c4d8f6330cc2958cb1e545075.tar.xz
glibc-eb32b0d40308166c4d8f6330cc2958cb1e545075.zip
Readd O_LARGEFILE flag for openat64 (bug 18781)
Diffstat (limited to 'sysdeps/unix/sysv/linux/openat.c')
-rw-r--r--sysdeps/unix/sysv/linux/openat.c5
1 files changed, 5 insertions, 0 deletions
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)