diff --git a/repertory/librepertory/src/drives/fuse/fuse_base.cpp b/repertory/librepertory/src/drives/fuse/fuse_base.cpp index f07eb545..1155e298 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_base.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_base.cpp @@ -352,21 +352,9 @@ auto fuse_base::init_(struct fuse_conn_info *conn) -> void * { #if FUSE_USE_VERSION >= 30 auto fuse_base::init_impl([[maybe_unused]] struct fuse_conn_info *conn, struct fuse_config *cfg) -> void * { - utils::file::change_to_process_directory(); - repertory::project_initialize(); - -#ifdef __APPLE__ - conn->want |= FUSE_CAP_VOL_RENAME; - conn->want |= FUSE_CAP_XTIMES; -#endif // __APPLE__ - - cfg->nullpath_ok = 0; - cfg->hard_remove = 1; - - return this; -} #else auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * { +#endif utils::file::change_to_process_directory(); repertory::project_initialize(); @@ -375,11 +363,13 @@ auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * { conn->want |= FUSE_CAP_XTIMES; #endif // __APPLE__ - conn->want |= FUSE_CAP_BIG_WRITES; +#if FUSE_USE_VERSION >= 30 + cfg->nullpath_ok = 0; + cfg->hard_remove = 1; +#endif return this; } -#endif auto fuse_base::mkdir_(const char *path, mode_t mode) -> int { constexpr const auto *function_name = static_cast(__FUNCTION__);