mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
install: split the need_copy check
This commit is contained in:
parent
179f0a7c3c
commit
ce18f8a2a1
1 changed files with 4 additions and 1 deletions
|
@ -954,7 +954,10 @@ fn need_copy(from: &Path, to: &Path, b: &Behavior) -> UResult<bool> {
|
||||||
if owner_id != to_meta.uid() {
|
if owner_id != to_meta.uid() {
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
} else if let Some(group_id) = b.group_id {
|
}
|
||||||
|
|
||||||
|
// Check if the group ID is specified and differs from the destination file's group.
|
||||||
|
if let Some(group_id) = b.group_id {
|
||||||
if group_id != to_meta.gid() {
|
if group_id != to_meta.gid() {
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue