]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: fix test smb2.notify-inotify.inotify-rename
authorRalph Boehme <slow@samba.org>
Fri, 23 May 2025 05:26:53 +0000 (07:26 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 28 May 2025 15:06:29 +0000 (15:06 +0000)
Need to remove SEC_STD_DELETE from the access mask, otherwise we can't move
files into this directory.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15861

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
source4/torture/smb2/notify.c

index b76cb7967aa261ef46d5854a7d79614d445994c2..06917abec01c2c8ed93059c2aed643aa94c1be6e 100644 (file)
@@ -2532,7 +2532,11 @@ static bool torture_smb2_inotify_rename(struct torture_context *torture,
 
        torture_comment(torture, "Testing change notify of a rename with inotify\n");
 
-       status = torture_smb2_testdir(tree1, BASEDIR_INR, &h1);
+       status = torture_smb2_testdir_access(
+               tree1,
+               BASEDIR_INR,
+               &h1,
+               SEC_RIGHTS_DIR_ALL & ~SEC_STD_DELETE);
        torture_assert_ntstatus_ok_goto(torture, status, ok, done, "torture_smb2_testdir failed");
 
        ZERO_STRUCT(create);