The Samba-Bugzilla – Attachment 18461 Details for
Bug 15730
VFS_OPEN_HOW_WITH_BACKUP_INTENT breaks shadow_copy2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.21
patch-for-4.21 (text/plain), 1.39 KB, created by
Christof Schmitt
on 2024-10-02 15:16:53 UTC
(
hide
)
Description:
patch for 4.21
Filename:
MIME Type:
Creator:
Christof Schmitt
Created:
2024-10-02 15:16:53 UTC
Size:
1.39 KB
patch
obsolete
>From 61c5289ac950eed66c8666806ec53496c6c06264 Mon Sep 17 00:00:00 2001 >From: Christof Schmitt <cs@samba.org> >Date: Tue, 1 Oct 2024 13:29:56 -0700 >Subject: [PATCH] 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 > >(cherry picked from commit 30b0fa892ad66bfad92403186f97fd46496e62de) >--- > source3/modules/vfs_shadow_copy2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c >index 9d3f5843f43..c14c7b6be6b 100644 >--- a/source3/modules/vfs_shadow_copy2.c >+++ b/source3/modules/vfs_shadow_copy2.c >@@ -1560,7 +1560,7 @@ static int shadow_copy2_openat(vfs_handle_struct *handle, > int ret; > bool ok; > >- if (how.resolve != 0) { >+ if ((how.resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) { > errno = ENOSYS; > return -1; > } >-- >2.46.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 15730
:
18460
| 18461