From bed7a679b57258a5e91aaa66c3b74ed1a887aed9 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 3 Mar 2015 16:49:07 +0000 Subject: [PATCH] Revert "waylandsink: mkstemp requires setting permission mask" This reverts commit 1890e7355a5464fcfff58633851265b3fc7a3731. Better to use g_mkstemp that takes care of the mask without affecting the entire process. --- ext/wayland/wlshmallocator.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/wayland/wlshmallocator.c b/ext/wayland/wlshmallocator.c index f36811f188..183795c3bd 100644 --- a/ext/wayland/wlshmallocator.c +++ b/ext/wayland/wlshmallocator.c @@ -30,7 +30,6 @@ #include #include #include -#include GST_DEBUG_CATEGORY_EXTERN (gstwayland_debug); #define GST_CAT_DEFAULT gstwayland_debug @@ -47,7 +46,6 @@ gst_wl_shm_allocator_alloc (GstAllocator * allocator, gsize size, int fd; gpointer data; GstWlShmMemory *mem; - mode_t mask; /* TODO: make use of the allocation params, if necessary */ @@ -55,9 +53,7 @@ gst_wl_shm_allocator_alloc (GstAllocator * allocator, gsize size, snprintf (filename, 1024, "%s/%s-%d-%s", g_get_user_runtime_dir (), "wayland-shm", init++, "XXXXXX"); - mask = umask (S_IRWXO | S_IRWXG); fd = mkstemp (filename); - umask (mask); if (fd < 0) { GST_ERROR_OBJECT (self, "opening temp file %s failed: %s", filename, strerror (errno));