Try to do setuid for disk_writer on macOS.
authorCarl Hetherington <cth@carlh.net>
Fri, 3 Apr 2020 21:07:27 +0000 (23:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 3 Apr 2020 21:07:27 +0000 (23:07 +0200)
wscript

diff --git a/wscript b/wscript
index a94fee8bae830ee8985275671cbcfbb5d96785dd..e0399ad719312d1c9499374284614fc95fb0ab49 100644 (file)
--- a/wscript
+++ b/wscript
@@ -695,6 +695,7 @@ def create_version_cc(version, cxx_flags):
 def post(ctx):
     if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
         ctx.exec_command('/sbin/ldconfig')
+    if ctx.cmd == 'install' and (ctx.env.TARGET_LINUX or ctx.env.TARGET_OSX):
         # setuid root executables
         for e in ['dcpomatic2_uuid', 'dcpomatic2_disk_writer']:
             # I can't find anything which tells me where things have been installed to,