diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-08 03:02:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-08 03:02:34 +0000 |
commit | 4338ee78c3d7bcf4b9fac383ff2f572d882ab97c (patch) | |
tree | eca2eedf371868199a2c8f8684e2ff976aebc126 /source/smbd/negprot.c | |
parent | 30cffea8fa813a7448648b496a19e751441e436e (diff) | |
download | samba-4338ee78c3d7bcf4b9fac383ff2f572d882ab97c.tar.gz samba-4338ee78c3d7bcf4b9fac383ff2f572d882ab97c.tar.xz samba-4338ee78c3d7bcf4b9fac383ff2f572d882ab97c.zip |
Extra stuff for large readwrite support.
Jeremy.
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r-- | source/smbd/negprot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c index 6c45e376540..83c809de1cb 100644 --- a/source/smbd/negprot.c +++ b/source/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); |