File fcntl-o-tmpfile.patch of Package glibc.8004

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.

Index: glibc-2.19/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
===================================================================
--- glibc-2.19.orig/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ glibc-2.19/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
openSUSE Build Service is sponsored by