summaryrefslogtreecommitdiff
path: root/source4/ntvfs/cifs/vfs_cifs.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-03-07 23:02:36 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-03-07 23:02:36 +0100
commit87abb775ce9a7610341ff8f06d1c482e72e6fd6d (patch)
tree6d74ffa4dbc967cd0f05a7182ca78f78d54dafdb /source4/ntvfs/cifs/vfs_cifs.c
parent6a1f56d82a367a2f037e18ed346cf7cce7f377e0 (diff)
parentdb669e1eb13effb08b1111405587c8c6dde95954 (diff)
downloadsamba-87abb775ce9a7610341ff8f06d1c482e72e6fd6d.tar.gz
samba-87abb775ce9a7610341ff8f06d1c482e72e6fd6d.tar.bz2
samba-87abb775ce9a7610341ff8f06d1c482e72e6fd6d.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
(This used to be commit ac27a1451dfe5c0c957e93fdc84602c3c1c7deac)
Diffstat (limited to 'source4/ntvfs/cifs/vfs_cifs.c')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c
index 901dd2cf7c..58183b5e60 100644
--- a/source4/ntvfs/cifs/vfs_cifs.c
+++ b/source4/ntvfs/cifs/vfs_cifs.c
@@ -207,7 +207,11 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
io.in.service = remote_share;
io.in.service_type = "?????";
lp_smbcli_options(ntvfs->ctx->lp_ctx, &io.in.options);
-
+
+ if (!(ntvfs->ctx->client_caps & NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS)) {
+ io.in.options.use_level2_oplocks = false;
+ }
+
creq = smb_composite_connect_send(&io, private,
lp_resolve_context(ntvfs->ctx->lp_ctx),
ntvfs->ctx->event_ctx);