1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

cp: rename handling_no_preserve_mode

to handle_no_preserve_mode
This commit is contained in:
Daniel Hofstetter 2023-10-25 10:43:23 +02:00 committed by GitHub
parent 086f7b548c
commit f8a30d524e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1743,7 +1743,7 @@ fn copy_file(
let mut permissions = source_metadata.permissions();
#[cfg(unix)]
{
let mut mode = handling_no_preserve_mode(options, permissions.mode());
let mut mode = handle_no_preserve_mode(options, permissions.mode());
// apply umask
use uucore::mode::get_umask;
@ -1876,7 +1876,7 @@ fn copy_file(
}
#[cfg(unix)]
fn handling_no_preserve_mode(options: &Options, org_mode: u32) -> u32 {
fn handle_no_preserve_mode(options: &Options, org_mode: u32) -> u32 {
let (is_preserve_mode, is_explicit_no_preserve_mode) = options.preserve_mode();
if !is_preserve_mode {
use libc::{