mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
Update src/uu/cp/src/cp.rs
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
This commit is contained in:
parent
254007ffe0
commit
7ea19c7c5d
1 changed files with 4 additions and 8 deletions
|
@ -1889,14 +1889,10 @@ fn handling_no_preserve_mode(options: &Options, org_mode: u32) -> u32 {
|
||||||
target_os = "macos-12",
|
target_os = "macos-12",
|
||||||
target_os = "freebsd",
|
target_os = "freebsd",
|
||||||
)))]
|
)))]
|
||||||
const MODE_RW_UGO: u32 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
|
{
|
||||||
#[cfg(not(any(
|
const MODE_RW_UGO: u32 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
|
||||||
target_os = "android",
|
const S_IRWXUGO: u32 = S_IRWXU | S_IRWXG | S_IRWXO;
|
||||||
target_os = "macos",
|
}
|
||||||
target_os = "macos-12",
|
|
||||||
target_os = "freebsd",
|
|
||||||
)))]
|
|
||||||
const S_IRWXUGO: u32 = S_IRWXU | S_IRWXG | S_IRWXO;
|
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue