Merge pull request #78 from mactcp/glenn_apfs-resfork

Improved fix for resource forks not being created on APFS volumes
This commit is contained in:
kanjitalk755 2021-02-04 14:14:52 +09:00 committed by GitHub
commit 73fc469c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ static int open_rsrc(const char *path, int flag)
make_rsrc_path(path, rsrc_path);
int fd = open(rsrc_path, flag);
if (fd < 0 && flag == O_WRONLY) fd = open(rsrc_path, O_WRONLY | O_CREAT); // for APFS
if (fd < 0 && (flag == O_WRONLY || flag == O_RDWR)) fd = open(rsrc_path, flag | O_CREAT); // for APFS
return fd;
}