mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
fix linter errors
This commit is contained in:
parent
9be5583d36
commit
c9fa07035b
1 changed files with 12 additions and 8 deletions
|
@ -1890,8 +1890,12 @@ fn handling_no_preserve_mode(options: &Options, org_mode: u32) -> u32 {
|
||||||
target_os = "freebsd",
|
target_os = "freebsd",
|
||||||
)))]
|
)))]
|
||||||
{
|
{
|
||||||
const MODE_RW_UGO: u32 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
|
const MODE_RW_UGO: u32 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
|
||||||
const S_IRWXUGO: u32 = S_IRWXU | S_IRWXG | S_IRWXO;
|
const S_IRWXUGO: u32 = S_IRWXU | S_IRWXG | S_IRWXO;
|
||||||
|
match is_explicit_no_preserve_mode {
|
||||||
|
true => return MODE_RW_UGO,
|
||||||
|
false => return org_mode & S_IRWXUGO,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
@ -1901,14 +1905,14 @@ fn handling_no_preserve_mode(options: &Options, org_mode: u32) -> u32 {
|
||||||
target_os = "freebsd",
|
target_os = "freebsd",
|
||||||
))]
|
))]
|
||||||
{
|
{
|
||||||
const MODE_RW_UGO: u32 = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) as u32;
|
const MODE_RW_UGO: u32 =
|
||||||
|
(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) as u32;
|
||||||
const S_IRWXUGO: u32 = (S_IRWXU | S_IRWXG | S_IRWXO) as u32;
|
const S_IRWXUGO: u32 = (S_IRWXU | S_IRWXG | S_IRWXO) as u32;
|
||||||
}
|
match is_explicit_no_preserve_mode {
|
||||||
|
true => return MODE_RW_UGO,
|
||||||
match is_explicit_no_preserve_mode {
|
false => return org_mode & S_IRWXUGO,
|
||||||
true => return MODE_RW_UGO,
|
};
|
||||||
false => return org_mode & S_IRWXUGO,
|
}
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
org_mode
|
org_mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue