fix(dwarfs): files not showing in finder w/o noapplexattr (gh #211)

This commit is contained in:
Marcus Holland-Moritz 2024-04-14 16:29:50 +02:00
parent 5d4017de4f
commit 5a2a0f515f
2 changed files with 5 additions and 4 deletions

View File

@ -912,7 +912,12 @@ void op_getxattr(fuse_req_t req, fuse_ino_t ino, char const* name, size_t size
<< ", extra_size=" << extra_size;
if (value.empty()) {
// Linux and macOS disagree on the error code for "attribute not found"
#ifdef __APPLE__
return ENOATTR;
#else
return ENODATA;
#endif
}
if (size == 0) {

View File

@ -553,10 +553,6 @@ class driver_runner {
wait_until_file_ready(mountpoint, std::chrono::seconds(5));
#else
std::vector<std::string> options;
#ifdef __APPLE__
options.push_back("-o");
options.push_back("noapplexattr");
#endif
if (!subprocess::check_run(driver, make_tool_arg(tool_arg), image,
mountpoint, options,
std::forward<Args>(args)...)) {