From 22d9c31a8210e37e62299f06c2c17df24d615daa Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 19 Oct 2020 21:11:51 +0200 Subject: [PATCH] smbd: use fdos_mode() in tsmsm_fset_dos_attributes() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_tsmsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.47.3