diff --git a/src/fs_acl.cpp b/src/fs_acl.cpp index ccc09457..bd8efbfe 100644 --- a/src/fs_acl.cpp +++ b/src/fs_acl.cpp @@ -50,7 +50,7 @@ namespace fs int rv; int fd; - fd = fs::openat(fd_,relpath_.parent_path(),O_RDONLY); + fd = fs::openat(fd_,relpath_.parent_path(),O_RDONLY|O_DIRECTORY); if(fd < 0) return false;