diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-06 20:45:08 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-06 21:32:08 +0200 |
commit | 3084d49cc000dbfeb01d931d737c695dcd392e4a (patch) | |
tree | df019add8d0a7a28a8a68017a18cd782f440bf82 /source3/libsmb | |
parent | 0c353b57113b02bccaaa3ec09ff9fb1fd8542bd4 (diff) | |
download | samba-3084d49cc000dbfeb01d931d737c695dcd392e4a.tar.gz samba-3084d49cc000dbfeb01d931d737c695dcd392e4a.tar.bz2 samba-3084d49cc000dbfeb01d931d737c695dcd392e4a.zip |
Add a bad hack to enable level 2 oplocks in torture_open_connection_share
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 34c0825c07..53a812d222 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2169,6 +2169,10 @@ NTSTATUS cli_full_connection(struct cli_state **output_cli, return nt_status; } + cli->use_oplocks = ((flags & CLI_FULL_CONNECTION_OPLOCKS) != 0); + cli->use_level_II_oplocks = + ((flags & CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS) != 0); + nt_status = cli_session_setup(cli, user, password, pw_len, password, pw_len, domain); if (!NT_STATUS_IS_OK(nt_status)) { |