Try to fix setuid call.
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Dec 2018 23:18:07 +0000 (23:18 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Dec 2018 23:18:07 +0000 (23:18 +0000)
wscript

diff --git a/wscript b/wscript
index 16c3ef9793cafe37dafd186a0dd628f2bbcf5ae9..14c6fee6152455d7746d97f38198d2a508789301 100644 (file)
--- a/wscript
+++ b/wscript
@@ -621,7 +621,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')
-        os.chmod(os.path.join(ctx.env.PREFIX, 'bin/dcpomatic2_uuid'), 0o4755)
+        os.chmod(os.path.join(ctx.options.prefix, 'bin/dcpomatic2_uuid'), 0o4755)
 
 def pot(bld):
     bld.recurse('src')