]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_catia: stat info may have been updated, make sure to return changes
authorRalph Boehme <slow@samba.org>
Fri, 30 Aug 2019 12:48:57 +0000 (14:48 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 10 Sep 2019 19:05:29 +0000 (19:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14121

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_catia.c

index 96c84e14d409fc6008a5d2a52319c27f2e7fc467..caeb25a97dd9c043c6b9966beb8ec1c7b8bcc655 100644 (file)
@@ -2384,6 +2384,10 @@ static NTSTATUS catia_get_dos_attributes(struct vfs_handle_struct *handle,
        status = SMB_VFS_NEXT_GET_DOS_ATTRIBUTES(handle,
                                                 mapped_smb_fname,
                                                 dosmode);
+       if (NT_STATUS_IS_OK(status)) {
+               smb_fname->st = mapped_smb_fname->st;
+       }
+
        TALLOC_FREE(mapped_name);
        TALLOC_FREE(mapped_smb_fname);