From 59b61c82fe18e612058302e4c726385c4eb301d8 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 1 Feb 2015 14:04:15 +0100 Subject: Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (bug 17912) --- ChangeLog | 6 ++++++ NEWS | 2 +- 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 + + [BZ #17912] + * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define + in terms of __O_DIRECTORY. + 2015-02-08 Samuel Thibault * time/getdate.c: Include . 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 -- cgit v1.2.3