Skip to content

Commit

Permalink
Fix attr command
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocasino committed Dec 30, 2024
1 parent c407207 commit e37e550
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ int main()
while (r != 0xff)
{
DIRE* de = (DIRE*)cpm_default_dma + r;
if (de->rc == 0x80)
continue;

if (modify)
{
Expand All @@ -122,6 +120,10 @@ int main()

de->us = dr; /* Convert to an FCB */
cpm_set_file_attributes((FCB*)de);

/* cpm_set_file_attributes() resets directory index, so */
/* recover index for last file match */
cpm_findfirst((FCB*)de);
}

cpm_conout((de->f[8] & 0x80) ? 'R' : '-');
Expand Down

0 comments on commit e37e550

Please sign in to comment.