mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3:libsmb: make use of SMB_CAP_LEGACY_CLIENT_MASK instead of SMB_CAP_CLIENT_MASK
This should allow smbclient to keep using large reads against older Samba versions (<= 3.6.x) and other servers that may also require this. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
3d7a4db6bc
commit
b041dc9451
@ -341,9 +341,13 @@ static uint32_t cli_session_setup_capabilities(struct cli_state *cli,
|
||||
* - client only flags
|
||||
* - flags used in both directions
|
||||
*
|
||||
* We do not echo the server only flags.
|
||||
* We do not echo the server only flags, except some legacy flags.
|
||||
*
|
||||
* SMB_CAP_LEGACY_CLIENT_MASK contains CAP_LARGE_READX and
|
||||
* CAP_LARGE_WRITEX in order to allow us to do large reads
|
||||
* against old Samba releases (<= 3.6.x).
|
||||
*/
|
||||
client_capabilities &= (SMB_CAP_BOTH_MASK | SMB_CAP_CLIENT_MASK);
|
||||
client_capabilities &= (SMB_CAP_BOTH_MASK | SMB_CAP_LEGACY_CLIENT_MASK);
|
||||
|
||||
/*
|
||||
* Session Setup specific flags CAP_DYNAMIC_REAUTH
|
||||
|
Reference in New Issue
Block a user