mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-28 12:04:26 +08:00
fs_acl.cpp
This commit is contained in:
parent
3502098c3c
commit
88e4dc87cb
@ -48,10 +48,11 @@ namespace fs
|
|||||||
int rv;
|
int rv;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
fd = fs::openat(fd_,relpath_.parent_path().string(),O_RDONLY);
|
fd = fs::openat(fd_,relpath_.parent_path(),O_RDONLY);
|
||||||
|
if(fd < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
rv = fs::fgetxattr(fd_,relpath_.c_str(),POSIX_ACL_DEFAULT_XATTR,NULL,0);
|
rv = fs::fgetxattr(fd_,relpath_,POSIX_ACL_DEFAULT_XATTR,NULL,0);
|
||||||
|
|
||||||
return (rv != -1);
|
return (rv != -1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user