From a22de99544af562ffa431ab4864b07ec3729088a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Feb 2015 21:44:35 +0100 Subject: 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.) --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 98df760b4c..d3086b9950 100644 --- a/wscript +++ b/wscript @@ -218,6 +218,10 @@ iconv support use --disable-iconv.", 'deps_neg': [ 'glob' ], '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', -- cgit v1.2.3