summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-10-11 17:13:52 +0200
committerKarolin Seeger <kseeger@samba.org>2018-11-06 09:10:23 +0100
commit8651d0e97b483ee742f7b2c7410125b4997cd307 (patch)
tree5d8bc9209bceb42a47c2a677dbbd93a37f94eb99 /source4
parentcaa5f0b81cf0f69a57c8a0b72e7ae8c07340f125 (diff)
downloadsamba-8651d0e97b483ee742f7b2c7410125b4997cd307.tar.gz
s4:torture/vfs/fruit: set share_access to NTCREATEX_SHARE_ACCESS_MASK in check_stream_list
Avoid sharing conflicts with other opens on the basefile. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1d4e50649b02c7c2314aa04e08f9946e21b6b37d)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/vfs/fruit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
index 44feaf44b1b..a37e2680d2c 100644
--- a/source4/torture/vfs/fruit.c
+++ b/source4/torture/vfs/fruit.c
@@ -3053,6 +3053,7 @@ static bool check_stream_list(struct smb2_tree *tree,
create.in.desired_access = SEC_FILE_ALL;
create.in.create_options = is_dir ? NTCREATEX_OPTIONS_DIRECTORY : 0;
create.in.file_attributes = is_dir ? FILE_ATTRIBUTE_DIRECTORY : FILE_ATTRIBUTE_NORMAL;
+ create.in.share_access = NTCREATEX_SHARE_ACCESS_MASK;
status = smb2_create(tree, tmp_ctx, &create);
torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "smb2_create");
h = create.out.file.handle;