Skip to content

Commit 72b60f3

Browse files
committed
Cleanup
1 parent e24f136 commit 72b60f3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/uu/ls/src/ls.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,19 +2747,15 @@ fn display_item_long(
27472747
#[cfg(any(not(unix), target_os = "android", target_os = "macos"))]
27482748
// TODO: See how Mac should work here
27492749
let has_acl = false;
2750-
#[cfg(any(not(unix), target_os = "android", target_os = "macos"))]
2751-
let has_cap = false;
27522750
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
27532751
let has_acl = { item.has_acl(&mut state.out) };
2754-
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
2755-
let has_cap = { item.has_capability() };
27562752

27572753
output_display.extend(display_permissions(md, true).as_bytes());
27582754
if item.security_context.len() > 1 {
27592755
// GNU `ls` uses a "." character to indicate a file with a security context,
27602756
// but not other alternate access method.
27612757
output_display.extend(b".");
2762-
} else if has_acl || has_cap {
2758+
} else if has_acl {
27632759
output_display.extend(b"+");
27642760
}
27652761
output_display.extend(b" ");

0 commit comments

Comments
 (0)