From: Ralph Boehme Date: Sat, 20 Oct 2018 12:52:23 +0000 (+0200) Subject: s4:torture/vfs/fruit: write some data to a just created teststream X-Git-Tag: samba-4.8.8~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0893dd1a772e1cfa8f3da00ab2c81ec2a15b8e6e;p=thirdparty%2Fsamba.git s4:torture/vfs/fruit: write some data to a just created teststream 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 Reviewed-by: Jeremy Allison (cherry picked from commit 3195ff9547824dd129e3fbcbbb8823fb10a0a5d4) --- diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 7be516593f1..5da7d11a9d4 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -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",