We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952ae58 commit bc95131Copy full SHA for bc95131
src/uucore/src/lib/features/fsxattr.rs
@@ -79,7 +79,10 @@ pub fn apply_xattrs<P: AsRef<Path>>(
79
/// `true` if the file has extended attributes (indicating an ACL), `false` otherwise.
80
pub fn has_acl<P: AsRef<Path>>(file: P) -> bool {
81
// don't use exacl here, it is doing more getxattr call then needed
82
- xattr::list(file).is_ok_and(|acl| acl.count() > 0)
+ xattr::list(file).is_ok_and(|acl| {
83
+ // if we have extra attributes, we have an acl
84
+ acl.count() > 0
85
+ })
86
}
87
88
/// Returns the permissions bits of a file or directory which has Access Control List (ACL) entries based on its
0 commit comments