summaryrefslogtreecommitdiff
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
commit0bc1feb2d60e1584c4ab41d50c8c0890a0cac00f (patch)
tree75460bc8009341c89d136f311e475f3248af58ef
parent84b4e79227c4e5ad7f03c3fbc289465fa913cb39 (diff)
downloadsamba-0bc1feb2d60e1584c4ab41d50c8c0890a0cac00f.tar.gz
samba-0bc1feb2d60e1584c4ab41d50c8c0890a0cac00f.tar.bz2
samba-0bc1feb2d60e1584c4ab41d50c8c0890a0cac00f.zip
made the CAP_UNIX test a bit cleaner
(This used to be commit 8c8b0dd381f357bdd204fd6b5d50b78765e93090)
-rw-r--r--source3/smbd/negprot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 58d0158c38..0e306cdab0 100644
--- a/source3/smbd/negprot.c
+++ b/source3/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;