]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: fix base_fsp name conversion
authorVolker Lendecke <vl@samba.org>
Tue, 6 Jan 2015 15:55:15 +0000 (15:55 +0000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 15 Jan 2015 12:55:09 +0000 (13:55 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11039

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit d9c22a3af2ac319d075a952c71496b6b76c83fcf)

source3/modules/vfs_fruit.c

index 23a7f16d58f119ba739faec702033098dfe422b5..253b459523cba838379eac292821ee18d6951beb 100644 (file)
@@ -2876,7 +2876,7 @@ static int fruit_fstat(vfs_handle_struct *handle, files_struct *fsp,
                   smb_fname_str_dbg(fsp->fsp_name)));
 
        if (fsp->base_fsp) {
-               tmp_base_name = fsp->fsp_name->base_name;
+               tmp_base_name = fsp->base_fsp->fsp_name->base_name;
                /* fsp_name is not converted with vfs_catia */
                status = SMB_VFS_TRANSLATE_NAME(
                        handle->conn,