diff --git a/BasiliskII/src/MacOSX/extfs_macosx.cpp b/BasiliskII/src/MacOSX/extfs_macosx.cpp index b610ee7a..dea61b00 100644 --- a/BasiliskII/src/MacOSX/extfs_macosx.cpp +++ b/BasiliskII/src/MacOSX/extfs_macosx.cpp @@ -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; }