s4:torture:vfs_fruit: fix flakey test_write_atalk_rfork_io with OS X
authorRalph Boehme <slow@samba.org>
Sat, 19 Dec 2015 17:56:24 +0000 (18:56 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Jan 2016 09:06:28 +0000 (10:06 +0100)
Adjust desired_access to prevent flaky test with OS X SMB server.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ba00884e8a67420cf8d6c2530a778b9cee6e86b8)

source4/torture/vfs/fruit.c

index 923b137a66d85b0e769ee2176c497264ed30f68c..f85e79700f0155b3eb8d7f384ef750529f5e2974 100644 (file)
@@ -1462,8 +1462,7 @@ static bool test_write_atalk_rfork_io(struct torture_context *tctx,
 
        ZERO_STRUCT(io);
        io.smb2.in.create_disposition = NTCREATEX_DISP_OPEN;
-       io.smb2.in.desired_access = SEC_FILE_READ_ATTRIBUTE |
-               SEC_FILE_WRITE_ATTRIBUTE;
+       io.smb2.in.desired_access = SEC_FILE_ALL;
        io.smb2.in.fname = rfork;
        status = smb2_create(tree, mem_ctx, &(io.smb2));
        CHECK_STATUS(status, NT_STATUS_OK);