fix for writing resource fork on APFS
This commit is contained in:
parent
18a908c770
commit
71cbb23b42
|
@ -251,7 +251,9 @@ static int open_rsrc(const char *path, int flag)
|
|||
char rsrc_path[MAX_PATH_LENGTH];
|
||||
make_rsrc_path(path, rsrc_path);
|
||||
|
||||
return open(rsrc_path, flag);
|
||||
int fd = open(rsrc_path, flag);
|
||||
if (fd < 0 && flag == O_WRONLY) fd = open(rsrc_path, O_WRONLY | O_CREAT); // for APFS
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue