Commit ed06c14
authored
fix(mv): correct selinux cfg gating for non-Linux platforms (#10989)
The mv command was using #[cfg(feature = "selinux")] but the uucore
selinux module requires both the feature AND Linux/Android target OS.
This caused build failures on macOS when the selinux feature was enabled.
Changed both the import and usage to use:
#[cfg(all(feature = "selinux", any(target_os = "linux", target_os = "android")))]
This aligns mv with other utilities (cp, install, stat, ls) that correctly
gate selinux functionality.1 parent 10d864a commit ed06c14
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
0 commit comments