The Samba-Bugzilla – Attachment 18583 Details for
Bug 15816
vfs_streams_depot fstatat broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch.txt (text/plain), 1.96 KB, created by
Volker Lendecke
on 2025-02-26 09:22:48 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2025-02-26 09:22:48 UTC
Size:
1.96 KB
patch
obsolete
>From 3df813e742a6cd12d046d47b789f03111c3b29d4 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Tue, 25 Feb 2025 12:09:58 +0100 >Subject: [PATCH] vfs: Fix vfs_streams_depot's fstatat > >a24c7d566f2 does not cover subdirectories > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=15816 >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Ralph Boehme <slow@samba.org> > >Autobuild-User(master): Volker Lendecke <vl@samba.org> >Autobuild-Date(master): Wed Feb 26 09:00:34 UTC 2025 on atb-devel-224 > >(cherry picked from commit 125862c617efae6926c91acae44206f29e61b148) >--- > source3/modules/vfs_streams_depot.c | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > >diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c >index dd4f8f524f8..951f1af17a9 100644 >--- a/source3/modules/vfs_streams_depot.c >+++ b/source3/modules/vfs_streams_depot.c >@@ -678,6 +678,7 @@ static int streams_depot_fstatat(struct vfs_handle_struct *handle, > { > struct smb_filename *smb_fname_stream = NULL; > struct smb_filename *base_fname = NULL; >+ struct smb_filename *full_basename = NULL; > NTSTATUS status; > int ret = -1; > >@@ -696,6 +697,14 @@ static int streams_depot_fstatat(struct vfs_handle_struct *handle, > goto done; > } > >+ full_basename = full_path_from_dirfsp_atname(base_fname, >+ dirfsp, >+ smb_fname); >+ if (full_basename == NULL) { >+ errno = ENOMEM; >+ goto done; >+ } >+ > ret = SMB_VFS_NEXT_FSTATAT( > handle, dirfsp, base_fname, &base_fname->st, flags); > if (ret == -1) { >@@ -703,8 +712,11 @@ static int streams_depot_fstatat(struct vfs_handle_struct *handle, > } > > /* lstat the actual stream now. */ >- status = stream_smb_fname( >- handle, &base_fname->st, smb_fname, &smb_fname_stream, false); >+ status = stream_smb_fname(handle, >+ &base_fname->st, >+ full_basename, >+ &smb_fname_stream, >+ false); > if (!NT_STATUS_IS_OK(status)) { > ret = -1; > errno = map_errno_from_nt_status(status); >-- >2.39.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15816
:
18583
|
18584
|
18585