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

Applefiles with resource forks fail to lapply to APFS volumes #332

Open
MacTroy opened this issue Jul 12, 2019 · 1 comment
Open

Applefiles with resource forks fail to lapply to APFS volumes #332

MacTroy opened this issue Jul 12, 2019 · 1 comment

Comments

@MacTroy
Copy link
Contributor

MacTroy commented Jul 12, 2019

If lapply is targeting an APFS-formatted volume, any applefiles that have resource forks will fail to be created. The error is:

filename.radmind.321/..namedfork/rsrc: No such file or directory

This is because on APFS volumes, the "..namedfork/rsrc" path is not available unless the file in question already has a resource fork attached. I've submitted a pull request with a patch for retr.c that fixes this.

@NJRoadfan
Copy link

I realize this is fixed, but I suspect one reason why this was failing was that the O_CREAT and O_EXCL flags were not being passed when opening the resource fork. I just had added resource fork support to another project using the /..namedfork/rsrc path trick, and it did not require a call to setxattr() to create new resource forks.

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

No branches or pull requests

2 participants