1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

install: split the need_copy check

This commit is contained in:
Sylvestre Ledru 2023-12-27 23:34:44 +01:00
parent 179f0a7c3c
commit ce18f8a2a1

View file

@ -954,7 +954,10 @@ fn need_copy(from: &Path, to: &Path, b: &Behavior) -> UResult<bool> {
if owner_id != to_meta.uid() {
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() {
return Ok(true);
}