]> git.ipfire.org Git - thirdparty/samba.git/commit
shadow_copy2: Ignore VFS_OPEN_HOW_WITH_BACKUP_INTENT
authorChristof Schmitt <cs@samba.org>
Tue, 1 Oct 2024 20:29:56 +0000 (13:29 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Oct 2024 08:06:38 +0000 (08:06 +0000)
commit30b0fa892ad66bfad92403186f97fd46496e62de
tree7af7c4f943cbed8768416c6da1cd1233e698ebb4
parentaf011b987a4ad0d3753d83cc0b8d97ad64ba874a
shadow_copy2: Ignore VFS_OPEN_HOW_WITH_BACKUP_INTENT

d1846452e96 vfs: Add VFS_OPEN_HOW_WITH_BACKUP_INTENT introduced
VFS_OPEN_HOW_WITH_BACKUP_INTENT for files opened with
FILE_OPEN_FOR_BACKUP_INTENT. shadow_copy2 refuses the open on a file if
any flage in how.resolve is set. Change the check in shadow_copy2 to
allow opening of files with VFS_OPEN_HOW_WITH_BACKUP_INTENT.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Oct  2 08:06:38 UTC 2024 on atb-devel-224
source3/modules/vfs_shadow_copy2.c