mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
install: split the need_copy check
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user