uid_wrapper: use conf.blddir to construct libnss_wrapper_so_path
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Apr 2017 07:27:39 +0000 (09:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Apr 2017 08:32:13 +0000 (10:32 +0200)
conf.blddir might not the the same as conf.srcdir + '/bin'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/uid_wrapper/wscript

index 8745fd0826b61af508efdf06701cf464a34e8c93..e958b0c0c4437aa80a96642a4cbe415273588cec 100644 (file)
@@ -112,8 +112,8 @@ syscall(SYS_setgroups32, 0, NULL);
         conf.CHECK_FUNCS('getresuid getresgid')
 
         # Create full path to uid_wrapper
-        srcdir = os.path.realpath(conf.srcdir)
-        libuid_wrapper_so_path = srcdir + '/bin/default/lib/uid_wrapper/libuid-wrapper.so'
+        blddir = os.path.realpath(conf.blddir)
+        libuid_wrapper_so_path = blddir + '/default/lib/uid_wrapper/libuid-wrapper.so'
 
     conf.DEFINE('LIBUID_WRAPPER_SO_PATH', libuid_wrapper_so_path)
     conf.DEFINE('UID_WRAPPER', 1)