Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COPY: When using wildcards, remove attributes from the FCBs before creating the destination files #215

Merged
merged 4 commits into from
Jan 19, 2025

Conversation

eduardocasino
Copy link
Contributor

When using wildcards, if any of the source files is read-only, COPY fails when trying to write the first sector, as it creates the destination as read-only too. This happens because COPY uses the dirents as fcbs, so all the attributes of the source are preserved. In case of a copy without wildcards, the destination file is created without any attribute set.

I've opted for the simplest fix here: remove all the attributes from the FCB before creating the destination file.

@davidgiven
Copy link
Owner

Merged. Thanks!

@davidgiven davidgiven merged commit fa490f9 into davidgiven:master Jan 19, 2025
1 check passed
@eduardocasino eduardocasino deleted the copy-fix-opt-1 branch January 19, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants