aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server/files/patch-Xext_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/xorg-server/files/patch-Xext_shm.c')
-rw-r--r--x11-servers/xorg-server/files/patch-Xext_shm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-servers/xorg-server/files/patch-Xext_shm.c b/x11-servers/xorg-server/files/patch-Xext_shm.c
new file mode 100644
index 000000000000..04106a049ab7
--- /dev/null
+++ b/x11-servers/xorg-server/files/patch-Xext_shm.c
@@ -0,0 +1,14 @@
+--- Xext/shm.c.orig 2016-07-19 17:14:21 UTC
++++ Xext/shm.c
+@@ -1210,7 +1210,11 @@ shm_tmpfile(void)
+ }
+ ErrorF ("Not using O_TMPFILE\n");
+ #endif
++#ifdef HAVE_MKOSTEMP
++ fd = mkostemp(template, O_CLOEXEC);
++#else
+ fd = mkstemp(template);
++#endif
+ if (fd < 0)
+ return -1;
+ unlink(template);