Skip to content

Commit

Permalink
Merge pull request #207 from eduardocasino/attr-fix
Browse files Browse the repository at this point in the history
Fix attr command
  • Loading branch information
davidgiven authored Jan 4, 2025
2 parents c407207 + e37e550 commit bf8dbb6
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 bf8dbb6

Please sign in to comment.