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