]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/vfs/fruit: write some data to a just created teststream
authorRalph Boehme <slow@samba.org>
Sat, 20 Oct 2018 12:52:23 +0000 (14:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:10:24 +0000 (09:10 +0100)
Doesn't currently make a difference, but this prepares for a later
change in vfs_fruit that will filter out empty streams (which is the
macOS behaviour).

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 3195ff9547824dd129e3fbcbbb8823fb10a0a5d4)

source4/torture/vfs/fruit.c

index 7be516593f158ba33d8ca8a4c6949821875ffa46..5da7d11a9d45a045eb07fc060d657e2b9b488bac 100644 (file)
@@ -5282,6 +5282,11 @@ static bool test_stream_names_local(struct torture_context *tctx,
 
        status = smb2_create(tree, mem_ctx, &create);
        CHECK_STATUS(status, NT_STATUS_OK);
+
+       status = smb2_util_write(tree, create.out.file.handle, "foo", 0, 3);
+       torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
+                                       "smb2_util_write failed\n");
+
        smb2_util_close(tree, create.out.file.handle);
 
        ret = torture_setup_local_xattr(tctx, "localdir", BASEDIR "/stream_names.txt",