mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
Start using std::filesystem::path for fusepath (#1522)
This commit is contained in:
parent
f64ff9ca1e
commit
8c649d33ee
139 changed files with 1711 additions and 1663 deletions
|
|
@ -21,18 +21,18 @@
|
|||
#include "fs_lgetxattr.hpp"
|
||||
#include "fs_path.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
constexpr const char POSIX_ACL_DEFAULT_XATTR[] = "system.posix_acl_default";
|
||||
|
||||
|
||||
bool
|
||||
fs::acl::dir_has_defaults(const std::string &fullpath_)
|
||||
fs::acl::dir_has_defaults(const fs::path &fullpath_)
|
||||
{
|
||||
int rv;
|
||||
std::string dirpath;
|
||||
fs::path dirpath;
|
||||
|
||||
dirpath = fs::path::dirname(fullpath_);
|
||||
dirpath = fullpath_.parent_path();
|
||||
|
||||
rv = fs::lgetxattr(dirpath,POSIX_ACL_DEFAULT_XATTR,NULL,0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue