SHA256
1
0
forked from pool/glibc
glibc/o-tmpfile.patch
Andreas Schwab 30e48d0d7f Accepting request 285070 from home:Andreas_Schwab:Factory
- Update to glibc 2.21 release.
  * A new semaphore algorithm has been implemented in generic C code for all
    machines
  * Added support for TSX lock elision of pthread mutexes on powerpc32,
    powerpc64 and powerpc64le
  * Optimized strcpy, stpcpy, strchrnul and strrchr implementations for
    AArch64
  * i386 memcpy functions optimized with SSE2 unaligned load/store
  * New locales: tu_IN, bh_IN, raj_IN, ce_RU
  * The obsolete sigvec function has been removed
- Patches from upstream removed
  * ifunc-x86-slow-sse4.patch
  * pthread-mutex-trylock-elision.patch
- o-tmpfile.patch: Fix value of O_TMPFILE for architectures with
  non-default O_DIRECTORY (BZ #17912)

OBS-URL: https://build.opensuse.org/request/show/285070
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=391
2015-02-10 10:34:33 +00:00

30 lines
875 B
Diff

From 127ffc81a8565bebd134c0f43afba5ae7997bf97 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@suse.de>
Date: Sun, 1 Feb 2015 14:04:15 +0100
Subject: [PATCH] Fix value of O_TMPFILE for architectures with non-default
O_DIRECTORY
[BZ #17912]
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
in terms of __O_DIRECTORY.
---
sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 3d28c84..d2baeb3 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
--
2.2.2