]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:fruit: Allow RESOLVE_NO_XDEV flag
authorSamuel Cabrero <scabrero@samba.org>
Thu, 9 Oct 2025 10:59:59 +0000 (12:59 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 08:03:32 +0000 (08:03 +0000)
For stream opens, it returns a fake fd. The streams will be stored by
vfs_streams_depot or vfs_streams_xattr.

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

index 9a634bab7585950e28275fe38b3ff3ca27b64954..933e00418a9ba2ecc043ca7171dfc2a54007a09a 100644 (file)
@@ -1763,7 +1763,9 @@ static int fruit_openat(vfs_handle_struct *handle,
                return fd;
        }
 
-       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;
        }