Skip to content

Commit b48ad7d

Browse files
committed
cp: fix selinux cfg attr
1 parent 26d5432 commit b48ad7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/cp/src/cp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,11 +896,11 @@ impl Attributes {
896896
mode: Preserve::Yes { required: true },
897897
timestamps: Preserve::Yes { required: true },
898898
context: {
899-
#[cfg(feature = "feat_selinux")]
899+
#[cfg(all(feature = "selinux", any(target_os = "linux", target_os = "android")))]
900900
{
901901
Preserve::Yes { required: false }
902902
}
903-
#[cfg(not(feature = "feat_selinux"))]
903+
#[cfg(not(all(feature = "selinux", any(target_os = "linux", target_os = "android"))))]
904904
{
905905
Preserve::No { explicit: false }
906906
}

0 commit comments

Comments
 (0)