bug#81413: [PATCH] install: skip chown/chmod when -C finds nothing to ch
From:
Mateusz Nosek
Subject:
bug#81413: [PATCH] install: skip chown/chmod when -C finds nothing to change
Date:
Wed, 15 Jul 2026 00:30:55 +0200
Hi,
I attach a patch for the "install" utility: "install -C" was still
calling chown/chmod on the destination even when need_copy() had
already determined it matches (mode, owner, group, content), which
could needlessly fail, e.g. on an immutable file.
This is my first patch to coreutils, so apologies for any mistakes in
the submission process -- happy to fix anything you point out.
Thanks,
Mateusz Nosek