]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: catia. Ensure read_dfs_pathat() returns stat info.
authorJeremy Allison <jra@samba.org>
Fri, 29 May 2020 23:38:53 +0000 (16:38 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 3 Jun 2020 04:54:38 +0000 (04:54 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_catia.c

index 0ce2f7925a3bb81d063b13ee85f6a36dcad882e1..85ef5cfb0d409d81e26bc86acf9c13d732bba161 100644 (file)
@@ -2451,6 +2451,11 @@ static NTSTATUS catia_read_dfs_pathat(struct vfs_handle_struct *handle,
                                        mapped_smb_fname,
                                        ppreflist,
                                        preferral_count);
+       if (NT_STATUS_IS_OK(status)) {
+               /* Return any stat(2) info. */
+               smb_fname->st = mapped_smb_fname->st;
+       }
+
        TALLOC_FREE(mapped_name);
        TALLOC_FREE(mapped_smb_fname);
        return status;