]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: cap. Ensure read_dfs_pathat() returns stat info.
authorJeremy Allison <jra@samba.org>
Fri, 29 May 2020 23:36:55 +0000 (16:36 -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_cap.c

index cf1c1f3d22c2a618fe8cc1d5d28ab3e5e2c43556..93f0454c608a89d4193674416215027b88c821b6 100644 (file)
@@ -1070,6 +1070,12 @@ static NTSTATUS cap_read_dfs_pathat(struct vfs_handle_struct *handle,
                        cap_smb_fname,
                        ppreflist,
                        preferral_count);
+
+       if (NT_STATUS_IS_OK(status)) {
+               /* Return any stat(2) info. */
+               smb_fname->st = cap_smb_fname->st;
+       }
+
        TALLOC_FREE(cappath);
        TALLOC_FREE(cap_smb_fname);
        return status;