diff options
author | Andreas Schwab <schwab@suse.de> | 2015-02-01 14:04:15 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2015-02-09 10:41:48 +0100 |
commit | 59b61c82fe18e612058302e4c726385c4eb301d8 (patch) | |
tree | 137a0c1d44873d795ba1f7734e35c7b83520980f | |
parent | 28b067571e98d3047da7020014502ff2391703be (diff) | |
download | glibc-59b61c82fe18e612058302e4c726385c4eb301d8.tar.gz glibc-59b61c82fe18e612058302e4c726385c4eb301d8.tar.xz glibc-59b61c82fe18e612058302e4c726385c4eb301d8.zip |
Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (bug 17912)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index a1cffb57ba..8f90a96753 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-02-09 Andreas Schwab <schwab@suse.de> + + [BZ #17912] + * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define + in terms of __O_DIRECTORY. + 2015-02-08 Samuel Thibault <samuel.thibault@ens-lyon.org> * time/getdate.c: Include <stdbool.h>. diff --git a/NEWS b/NEWS index 3a209ce664..7a6b7750b4 100644 --- a/NEWS +++ b/NEWS @@ -9,7 +9,7 @@ Version 2.22 * The following bugs are resolved with this release: - 17932. + 17912, 17932. Version 2.21 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 |