diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-06 15:11:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-03-06 16:31:25 +0100 |
commit | 3cbe47b2aef427f7f1fe8f4aa2496fbbe31a3ade (patch) | |
tree | 74a54f9d74298c8f6e025e186933805fae1ffbdf /source4/libcli/raw | |
parent | c24329dc0710df7520e77d67e5d9bc43f59fd24f (diff) | |
download | samba-3cbe47b2aef427f7f1fe8f4aa2496fbbe31a3ade.tar.gz samba-3cbe47b2aef427f7f1fe8f4aa2496fbbe31a3ade.tar.bz2 samba-3cbe47b2aef427f7f1fe8f4aa2496fbbe31a3ade.zip |
libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKS
But the keep the default to always send it
when the server supports it too.
metze
(This used to be commit 33caaef2e46557525a8ffb79d6dd0db46a079529)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r-- | source4/libcli/raw/rawnegotiate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c index ec2ada53ff..6c16935f21 100644 --- a/source4/libcli/raw/rawnegotiate.c +++ b/source4/libcli/raw/rawnegotiate.c @@ -187,6 +187,10 @@ NTSTATUS smb_raw_negotiate_recv(struct smbcli_request *req) transport->negotiate.capabilities &= ~CAP_STATUS32; } + if (!transport->options.use_level2_oplocks) { + transport->negotiate.capabilities &= ~CAP_LEVEL_II_OPLOCKS; + } + failed: return smbcli_request_destroy(req); } |