From 5ff8cce8a3a3726c48199bc54f0babc376e0389f Mon Sep 17 00:00:00 2001 From: "daniel.eades" Date: Mon, 20 Jan 2025 07:49:23 +0000 Subject: [PATCH] reinstate comment --- src/uucore/src/lib/features/fsxattr.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uucore/src/lib/features/fsxattr.rs b/src/uucore/src/lib/features/fsxattr.rs index b8d7339cb2..1913b0669f 100644 --- a/src/uucore/src/lib/features/fsxattr.rs +++ b/src/uucore/src/lib/features/fsxattr.rs @@ -79,7 +79,10 @@ pub fn apply_xattrs>( /// `true` if the file has extended attributes (indicating an ACL), `false` otherwise. pub fn has_acl>(file: P) -> bool { // don't use exacl here, it is doing more getxattr call then needed - xattr::list(file).is_ok_and(|acl| acl.count() > 0) + xattr::list(file).is_ok_and(|acl| { + // if we have extra attributes, we have an acl + acl.count() > 0 + }) } /// Returns the permissions bits of a file or directory which has Access Control List (ACL) entries based on its