about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-02-01 14:04:15 +0100
committerAndreas Schwab <schwab@suse.de>2015-02-09 10:41:48 +0100
commit59b61c82fe18e612058302e4c726385c4eb301d8 (patch)
tree137a0c1d44873d795ba1f7734e35c7b83520980f /sysdeps/unix/sysv/linux/bits/fcntl-linux.h
parent28b067571e98d3047da7020014502ff2391703be (diff)
downloadglibc-59b61c82fe18e612058302e4c726385c4eb301d8.tar.gz
glibc-59b61c82fe18e612058302e4c726385c4eb301d8.tar.xz
glibc-59b61c82fe18e612058302e4c726385c4eb301d8.zip
Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (bug 17912)
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/fcntl-linux.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/fcntl-linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 3d28c84926..d2baeb3d63 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -97,7 +97,7 @@
 # define __O_DSYNC	 010000
 #endif
 #ifndef __O_TMPFILE
-# define __O_TMPFILE   020200000
+# define __O_TMPFILE   (020000000 | __O_DIRECTORY)
 #endif
 
 #ifndef F_GETLK