Skip to content

Commit bc95131

Browse files
author
daniel.eades
committed
reinstate comment
1 parent 952ae58 commit bc95131

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uucore/src/lib/features/fsxattr.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ pub fn apply_xattrs<P: AsRef<Path>>(
7979
/// `true` if the file has extended attributes (indicating an ACL), `false` otherwise.
8080
pub fn has_acl<P: AsRef<Path>>(file: P) -> bool {
8181
// don't use exacl here, it is doing more getxattr call then needed
82-
xattr::list(file).is_ok_and(|acl| acl.count() > 0)
82+
xattr::list(file).is_ok_and(|acl| {
83+
// if we have extra attributes, we have an acl
84+
acl.count() > 0
85+
})
8386
}
8487

8588
/// Returns the permissions bits of a file or directory which has Access Control List (ACL) entries based on its

0 commit comments

Comments
 (0)