]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:shadow_copy2: Allow RESOLVE_NO_XDEV flag
authorSamuel Cabrero <scabrero@suse.de>
Fri, 2 May 2025 11:21:52 +0000 (13:21 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 08:03:32 +0000 (08:03 +0000)
This module updates the path and calls the next VFS module.

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

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_shadow_copy2.c

index 17e2b84d7bd05d72d26648c7d5a27b31ac8c45aa..8e9b6701cb1d42c8c4e0a6bf047cfe8894c455f4 100644 (file)
@@ -1558,7 +1558,9 @@ static int shadow_copy2_openat(vfs_handle_struct *handle,
        int ret;
        bool ok;
 
-       if ((how.resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
+       if ((how.resolve & ~(VFS_OPEN_HOW_WITH_BACKUP_INTENT |
+                            VFS_OPEN_HOW_RESOLVE_NO_XDEV)) != 0)
+       {
                errno = ENOSYS;
                return -1;
        }