From: Ralph Boehme Date: Mon, 19 Oct 2020 19:11:19 +0000 (+0200) Subject: smbd: use fdos_mode() in tsmsm_set_dos_attributes() X-Git-Tag: samba-4.14.0rc1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a1bb23288a62097d656e7c273e0164fa8bec261;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in tsmsm_set_dos_attributes() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index 27b21369673..7787532674f 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -547,7 +547,7 @@ static NTSTATUS tsmsm_set_dos_attributes(struct vfs_handle_struct *handle, return NT_STATUS_NO_MEMORY; } - old_dosmode = dos_mode(handle->conn, fname); + old_dosmode = fdos_mode(smb_fname->fsp); TALLOC_FREE(fname); status = SMB_VFS_NEXT_SET_DOS_ATTRIBUTES(handle, smb_fname, dosmode);