]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in tsmsm_fset_dos_attributes()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 19:11:51 +0000 (21:11 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_tsmsm.c

index 7787532674f65122ea0a779a59aa05642a811553..1ae3719a30dc6acbb3f105d07bc95cfbeb7457fd 100644 (file)
@@ -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)) {