diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-03-25 02:41:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-03-25 02:41:19 +0000 |
commit | f169d83a8b707d6d480c456bf4e4ca7c85dadbae (patch) | |
tree | d15e49f471ae8ab463061e95458865b3a893f77c /source4/libcli/raw/clioplock.c | |
parent | 0340fec0c1a01339d459c9505614d69ac6a62e9b (diff) | |
download | samba-f169d83a8b707d6d480c456bf4e4ca7c85dadbae.tar.gz samba-f169d83a8b707d6d480c456bf4e4ca7c85dadbae.tar.bz2 samba-f169d83a8b707d6d480c456bf4e4ca7c85dadbae.zip |
fixed the handling of level II oplocks in samba4, especially when
acting as a cifs redirectory (using the cifs backend)
(This used to be commit 06a8100e6a2f3f079af5b6ec32d87d1d25f56c3c)
Diffstat (limited to 'source4/libcli/raw/clioplock.c')
-rw-r--r-- | source4/libcli/raw/clioplock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/raw/clioplock.c b/source4/libcli/raw/clioplock.c index 8f69716bda..f27bf937ce 100644 --- a/source4/libcli/raw/clioplock.c +++ b/source4/libcli/raw/clioplock.c @@ -33,7 +33,8 @@ BOOL cli_oplock_ack(struct cli_tree *tree, uint16 fnum, uint16 ack_level) SSVAL(req->out.vwv,VWV(0),0xFF); SSVAL(req->out.vwv,VWV(1),0); SSVAL(req->out.vwv,VWV(2),fnum); - SSVAL(req->out.vwv,VWV(3),ack_level); + SCVAL(req->out.vwv,VWV(3),LOCKING_ANDX_OPLOCK_RELEASE); + SCVAL(req->out.vwv,VWV(3)+1,ack_level); SIVAL(req->out.vwv,VWV(4),0); SSVAL(req->out.vwv,VWV(6),0); SSVAL(req->out.vwv,VWV(7),0); |