This commit is contained in:
Scott E. Graves 2024-11-11 13:58:47 -06:00
parent bd836b9ecb
commit 6b40658eac

View File

@ -137,12 +137,15 @@ auto fuse_drive::create_impl(std::string api_path, mode_t mode,
} }
if (is_create_op) { if (is_create_op) {
if ((res = check_access(api_path, W_OK)) == api_error::item_not_found) { res = check_access(api_path, W_OK);
if (res == api_error::item_not_found) {
res = check_parent_access(api_path, W_OK); res = check_parent_access(api_path, W_OK);
} }
} else if ((res = check_access(api_path, R_OK)) == } else {
api_error::item_not_found) { res = res = check_access(api_path, R_OK);
res = check_parent_access(api_path, R_OK); if (res == api_error::item_not_found) {
res = check_parent_access(api_path, R_OK);
}
} }
if (res != api_error::success) { if (res != api_error::success) {