From: Ralph Boehme Date: Fri, 23 May 2025 05:26:53 +0000 (+0200) Subject: smbtorture: fix test smb2.notify-inotify.inotify-rename X-Git-Tag: samba-4.22.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23cddcc2e6333c7ebab5bcb3d1d12bb5b9a470c;p=thirdparty%2Fsamba.git smbtorture: fix test smb2.notify-inotify.inotify-rename 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 Reviewed-by: Bjoern Jacke (cherry picked from commit 8b346857b837259c017b47cb6a935ed54afc8c60) --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index b76cb7967aa..06917abec01 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -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);