From cf807476f18e30435d88399c0b5c7c13e189b782 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 6 Feb 2024 23:45:55 -0600 Subject: [PATCH] fs_acl.cpp --- src/fs_acl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fs_acl.cpp b/src/fs_acl.cpp index 5f3828ca..79c3b947 100644 --- a/src/fs_acl.cpp +++ b/src/fs_acl.cpp @@ -45,7 +45,11 @@ namespace fs dir_has_defaults(const int fd_, const ghc::filesystem::path &relpath_) { + int rv; + + rv = fs::fgetxattr(fd_,relpath_.c_str(),POSIX_ACL_DEFAULT_XATTR,NULL,0); + return (rv != -1); } } }