summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-11 15:39:18 +0200
committerJeremy Allison <jra@samba.org>2012-07-11 08:44:45 -0700
commit5231d70fe506d345152b12c4ed704b1de814891f (patch)
tree89b02d9cc82845fd5d870afca660358c1cdce553 /source3/wscript
parent8ee30be431246863a0ddb2f942b7b6fe51788d6d (diff)
downloadsamba-5231d70fe506d345152b12c4ed704b1de814891f.tar.gz
samba-5231d70fe506d345152b12c4ed704b1de814891f.tar.xz
samba-5231d70fe506d345152b12c4ed704b1de814891f.zip
build: fix waf checks for seteuid on non-Linux platforms
An indentation error had linux-specific checks called on non-linux with the effect that "#define USE_LINUX_THREAD_CREDENTIALS 1" was effective.
Diffstat (limited to 'source3/wscript')
-rwxr-xr-xsource3/wscript9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/wscript b/source3/wscript
index 12529e5e69a..f28cad128bb 100755
--- a/source3/wscript
+++ b/source3/wscript
@@ -733,6 +733,8 @@ int i; i = PAM_RADIO_TYPE;
conf.DEFINE('WITH_PAM', 1)
conf.DEFINE('WITH_PAM_MODULES', 1)
+ seteuid = False
+
#
# Ensure we select the correct set of system calls on Linux.
#
@@ -772,10 +774,7 @@ syscall(SYS_setgroups32, 0, NULL);
'USE_LINUX_32BIT_SYSCALLS',
msg="Checking whether Linux should use 32-bit credential calls");
- seteuid = False
-
- if not seteuid:
- if (conf.CONFIG_SET('USE_LINUX_32BIT_SYSCALLS')):
+ if (conf.CONFIG_SET('USE_LINUX_32BIT_SYSCALLS')):
seteuid = conf.CHECK_CODE('''
#define AUTOCONF_TEST 1
#define USE_LINUX_THREAD_CREDENTIALS 1
@@ -787,7 +786,7 @@ syscall(SYS_setgroups32, 0, NULL);
addmain=False,
execute=True,
msg="Checking whether we can use Linux thread-specific credentials with 32-bit system calls")
- else:
+ else:
seteuid = conf.CHECK_CODE('''
#define AUTOCONF_TEST 1
#define USE_LINUX_THREAD_CREDENTIALS 1