From a10dddf24dbf882d4f7764e513f9b6acb433dc74 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 6 Feb 2024 23:55:19 -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 79c3b947..abfaa02c 100644 --- a/src/fs_acl.cpp +++ b/src/fs_acl.cpp @@ -46,6 +46,10 @@ namespace fs const ghc::filesystem::path &relpath_) { int rv; + int fd; + + fd = fs::openat(fd_,relpath_.parent_path().string(),O_RDONLY); + rv = fs::fgetxattr(fd_,relpath_.c_str(),POSIX_ACL_DEFAULT_XATTR,NULL,0);