]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (bug 17912)
authorAndreas Schwab <schwab@suse.de>
Sun, 1 Feb 2015 13:04:15 +0000 (14:04 +0100)
committerAndreas Schwab <schwab@suse.de>
Mon, 9 Feb 2015 09:41:48 +0000 (10:41 +0100)
ChangeLog
NEWS
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index a1cffb57ba8d6c6684222be2b29f40de194afce5..8f90a96753c71a115395e1f0ae9469b8ad6e7ecc 100644 (file)
--- 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 3a209ce664b7079084adaaceabe1bb363e86b75b..7a6b7750b4bf79c5144255a93061a0b532383dee 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.22
 
 * The following bugs are resolved with this release:
 
-  17932.
+  17912, 17932.
 \f
 Version 2.21
 
index 3d28c84926d2c47d2bfc6468e7e645be8fe2b48a..d2baeb3d63a94e1fd3302aea0b65a4ef41a93f01 100644 (file)
@@ -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