Andreas Schwab
e85cac7c02
- dont-remove-nodelete-flag.patch: Don't remove DF_1_NODELETE flag from all loaded objects on failed dlopen - openat64-readd-o-largefile.patch: Readd O_LARGEFILE flag for openat64 OBS-URL: https://build.opensuse.org/request/show/321588 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=413
17 lines
513 B
Diff
17 lines
513 B
Diff
Index: glibc-2.22/sysdeps/unix/sysv/linux/openat.c
|
|
===================================================================
|
|
--- glibc-2.22.orig/sysdeps/unix/sysv/linux/openat.c
|
|
+++ glibc-2.22/sysdeps/unix/sysv/linux/openat.c
|
|
@@ -68,6 +68,11 @@ __OPENAT (int fd, const char *file, int
|
|
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)
|