00db10
commit 59b61c82fe18e612058302e4c726385c4eb301d8
00db10
Author: Andreas Schwab <schwab@suse.de>
00db10
Date:   Sun Feb 1 14:04:15 2015 +0100
00db10
00db10
    Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (bug 17912)
00db10
00db10
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
index 3d28c84..d2baeb3 100644
00db10
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
@@ -97,7 +97,7 @@
00db10
 # define __O_DSYNC	 010000
00db10
 #endif
00db10
 #ifndef __O_TMPFILE
00db10
-# define __O_TMPFILE   020200000
00db10
+# define __O_TMPFILE   (020000000 | __O_DIRECTORY)
00db10
 #endif
00db10
 
00db10
 #ifndef F_GETLK