mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
* 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