From: Samuel Cabrero Date: Thu, 9 Oct 2025 10:52:11 +0000 (+0200) Subject: vfs:streams_depot: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b283f83e7bb2501e1b2c75489852512a1bd4fd;p=thirdparty%2Fsamba.git vfs:streams_depot: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag The flag is passed down the modules stack. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805 Signed-off-by: Samuel Cabrero Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 279f1289d4a..4d16079ea89 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -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; }