mirror of
https://github.com/flatpak/flatpak.git
synced 2026-11-07 14:23:42 -05:00
This is solved in a much nicer way on master, using new ostree APIs. However, here we take a brute-force approach of scanning all staged files and ensuring we don't have any files or directories with invalid modes before committing the transaction. If any bad permissions were found we delete the entire staging directory.