summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-08 03:02:34 +0000
committerJeremy Allison <jra@samba.org>2001-06-08 03:02:34 +0000
commit3414c71f6de04d0ba26841bceac381498f43ecad (patch)
treeefb4a7b467f4a9fecbfaedde8bef62e444e858ca /source3/smbd
parent79ca1f75bb98bd54feee7f2ad0fcfa36d017b92e (diff)
downloadsamba-3414c71f6de04d0ba26841bceac381498f43ecad.tar.gz
samba-3414c71f6de04d0ba26841bceac381498f43ecad.tar.bz2
samba-3414c71f6de04d0ba26841bceac381498f43ecad.zip
Extra stuff for large readwrite support.
Jeremy. (This used to be commit 4338ee78c3d7bcf4b9fac383ff2f572d882ab97c)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/negprot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 6c45e37654..83c809de1c 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -160,7 +160,8 @@ static int reply_nt1(char *outbuf)
/* dual names + lock_and_read + nt SMBs + remote API calls */
int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|CAP_LEVEL_II_OPLOCKS|
(lp_nt_smb_support() ? CAP_NT_SMBS | CAP_RPC_REMOTE_APIS : 0) |
- CAP_LARGE_READX | CAP_LARGE_WRITEX |
+ ((lp_large_readwrite() && (SMB_OFF_T_BITS == 64)) ?
+ CAP_LARGE_READX | CAP_LARGE_WRITEX | CAP_W2K_SMBS : 0) |
(SMB_OFF_T_BITS == 64 ? CAP_LARGE_FILES : 0);