]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:streams_depot: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag
authorSamuel Cabrero <scabrero@samba.org>
Thu, 9 Oct 2025 10:52:11 +0000 (12:52 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 08:03:32 +0000 (08:03 +0000)
The flag is passed down the modules stack.

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_streams_depot.c

index 279f1289d4af425f190f4134aea485e9fc14e0df..4d16079ea8947de94fc73233f2d7ef7c8da9e94d 100644 (file)
@@ -729,7 +729,9 @@ static int streams_depot_openat(struct vfs_handle_struct *handle,
                        handle, dirfsp, smb_fname, fsp, how);
        }
 
-       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;
        }