[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Wed Oct 2 08:07:02 UTC 2024


The branch, master has been updated
       via  30b0fa892ad shadow_copy2: Ignore VFS_OPEN_HOW_WITH_BACKUP_INTENT
      from  af011b987a4 s3:notifyd: Use a watcher per db record

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 30b0fa892ad66bfad92403186f97fd46496e62de
Author: Christof Schmitt <cs at samba.org>
Date:   Tue Oct 1 13:29:56 2024 -0700

    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 at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Wed Oct  2 08:06:38 UTC 2024 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_shadow_copy2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index b91d5c8242f..9b7d208bb7b 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -1562,7 +1562,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;
 	}


-- 
Samba Shared Repository



More information about the samba-cvs mailing list