From 5620ef8c43a3f577ee970ae41c430b3c6a953c7c Mon Sep 17 00:00:00 2001 From: Glenn Anderson Date: Wed, 3 Feb 2021 09:16:11 -0800 Subject: [PATCH] Improved fix for resource forks not being created on APFS volumes --- BasiliskII/src/MacOSX/extfs_macosx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/MacOSX/extfs_macosx.cpp b/BasiliskII/src/MacOSX/extfs_macosx.cpp index dea61b00..760c378f 100644 --- a/BasiliskII/src/MacOSX/extfs_macosx.cpp +++ b/BasiliskII/src/MacOSX/extfs_macosx.cpp @@ -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; }