summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-22 22:51:28 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-22 22:51:28 +0000
commit8c8b0dd381f357bdd204fd6b5d50b78765e93090 (patch)
treedae1278e3fca1a9e95593546fb41bed937b60379 /source/smbd/negprot.c
parent228fc518da0404fe770175d5277fe5f5b08f9c67 (diff)
downloadsamba-8c8b0dd381f357bdd204fd6b5d50b78765e93090.tar.gz
samba-8c8b0dd381f357bdd204fd6b5d50b78765e93090.tar.xz
samba-8c8b0dd381f357bdd204fd6b5d50b78765e93090.zip
made the CAP_UNIX test a bit cleaner
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r--source/smbd/negprot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index 58d0158c38b..0e306cdab0a 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -239,7 +239,11 @@ static int reply_nt1(char *inbuf, char *outbuf)
capabilities |= CAP_EXTENDED_SECURITY;
}
- capabilities |= CAP_NT_SMBS|CAP_RPC_REMOTE_APIS|(lp_unix_extensions() ? CAP_UNIX : 0);
+ capabilities |= CAP_NT_SMBS|CAP_RPC_REMOTE_APIS;
+
+ if (lp_unix_extensions()) {
+ capabilities |= CAP_UNIX;
+ }
if (lp_large_readwrite() && (SMB_OFF_T_BITS == 64))
capabilities |= CAP_LARGE_READX|CAP_LARGE_WRITEX|CAP_W2K_SMBS;