waylandsink: mkstemp requires setting permission mask
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 3 Mar 2015 15:51:50 +0000 (15:51 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 3 Mar 2015 15:51:55 +0000 (15:51 +0000)
commit1890e7355a5464fcfff58633851265b3fc7a3731
tree67a748f266c372700ce06dd75a5d1ee1eed079c0
parent4521524de37f50812acb33a147fe61d1a0d0a364
waylandsink: mkstemp requires setting permission mask

Using mkstemp without setting the permission mask is potentially harmful.
POSIX specification of mkstemp() does not say anything about file modes, so we
need to make sure its file mode creation mask is set appropriately before
calling it.
ext/wayland/wlshmallocator.c