diff --git a/src/mergerfs_api.cpp b/src/mergerfs_api.cpp index c68b511b..ac9095cc 100644 --- a/src/mergerfs_api.cpp +++ b/src/mergerfs_api.cpp @@ -100,9 +100,11 @@ mergerfs::api::basepath(const std::string &input_path_, int mergerfs::api::relpath(const std::string &input_path_, - std::string &relpath_) + std::string *relpath_) { - return ::_lgetxattr(input_path_,"relpath",relpath_); + return fs::xattr::get(input_path_, + "user.mergerfs.relpath", + relpath_); } int