From: Ralph Boehme Date: Mon, 19 Oct 2020 19:11:51 +0000 (+0200) Subject: smbd: use fdos_mode() in tsmsm_fset_dos_attributes() X-Git-Tag: samba-4.14.0rc1~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22d9c31a8210e37e62299f06c2c17df24d615daa;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in tsmsm_fset_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 7787532674f..1ae3719a30d 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -571,7 +571,7 @@ static NTSTATUS tsmsm_fset_dos_attributes(struct vfs_handle_struct *handle, NTSTATUS status; uint32_t old_dosmode; - old_dosmode = dos_mode(handle->conn, fsp->fsp_name); + old_dosmode = fdos_mode(fsp); status = SMB_VFS_NEXT_FSET_DOS_ATTRIBUTES(handle, fsp, dosmode); if (!NT_STATUS_IS_OK(status)) {