summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-26 21:44:35 +0100
committerwm4 <wm4@nowhere>2015-02-26 21:44:35 +0100
commita22de99544af562ffa431ab4864b07ec3729088a (patch)
tree52a3de2768fda3182319c221b876644386561fa7 /wscript
parent0035dbdbb8f33add8a83fa216a4e597de560ec48 (diff)
downloadmpv-a22de99544af562ffa431ab4864b07ec3729088a.tar.bz2
mpv-a22de99544af562ffa431ab4864b07ec3729088a.tar.xz
input: avoid creating world-writeable file with --input-unix-socket
This requires fchmod(), which is not necessarily available everywhere. It also might not work at all. (It does work on Linux.)
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index 98df760b4c..d3086b9950 100644
--- a/wscript
+++ b/wscript
@@ -219,6 +219,10 @@ iconv support use --disable-iconv.",
'deps_any': [ 'os-win32', 'os-cygwin' ],
'func': check_true
}, {
+ 'name': 'fchmod',
+ 'desc': 'fchmod()',
+ 'func': check_statement('sys/stat.h', 'fchmod(0, 0)'),
+ }, {
'name': 'glibc-thread-name',
'desc': 'GLIBC API for setting thread name',
'func': check_statement('pthread.h',