From eee832ce490cabccc8f71d8d7327d433eed18282 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 2 Aug 2025 20:45:52 -0500 Subject: [PATCH] fix linux --- .../src/drives/fuse/remotefuse/remote_fuse_drive.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_fuse_drive.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_fuse_drive.cpp index a47c28ed..4a47794d 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_fuse_drive.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_fuse_drive.cpp @@ -403,7 +403,11 @@ auto remote_fuse_drive::readdir_impl(std::string api_path, void *buf, p_stat = std::make_unique(); std::memset(p_stat.get(), 0, sizeof(struct stat)); if (item_path == ".") { +#if FUSE_USE_VERSION >= 30 + stat_res = getattr_impl(api_path, p_stat.get(), f_info); +#else // FUSE_USE_VERSION < 30 stat_res = getattr_impl(api_path, p_stat.get()); +#endif // FUSE_USE_VERSION >= 30 } else if (api_path == "/" && get_mount_location() != "/") { auto local_res = stat(utils::path::get_parent_path(get_mount_location()).c_str(), @@ -413,8 +417,13 @@ auto remote_fuse_drive::readdir_impl(std::string api_path, void *buf, break; } } else { +#if FUSE_USE_VERSION >= 30 + stat_res = getattr_impl(utils::path::get_parent_api_path(api_path), + p_stat.get(), f_info); +#else // FUSE_USE_VERSION < 30 stat_res = getattr_impl(utils::path::get_parent_api_path(api_path), p_stat.get()); +#endif // FUSE_USE_VERSION >= 30 } if (stat_res != api_error::success) {