Files
craft-libs/crates/settings/tests
Dylan M. Taylor 9ac3245966 settings, atomic: give a replaced file's group bits only to its group (#558)
* settings, atomic: give a replaced file's group bits only to its group

write_backup copied the config's mode onto a new backup inode without
giving it the config's group, and craft-atomic's stage() did the same
for every replaced file: on a setgid directory or with another primary
group, the group bits opened the contents to a group never granted
them. Both now chown the new inode to the replaced file's group first
and drop the group bits when that fails.

* address review: skip fchown when the stage already has the replaced file's group

* atomic: route the stage's group change through AtomicFs so the fallback is tested
2026-11-16 09:55:13 -05:00
..