]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in tsmsm_set_dos_attributes()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 19:11:19 +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 27b213696736cf341d04c728d0ab78b9643f31a9..7787532674f65122ea0a779a59aa05642a811553 100644 (file)
@@ -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);