mirror of
https://git.tukaani.org/xz.git
synced 2025-02-22 16:38:11 +00:00
This was added to xz in 02e3505991233901575b7eabc06b2c6c62a96899 but I forgot to do the same in xzdec. The Landlock sandbox in xzdec could be stricter as now it's active only for the last file being decompressed. In xz, read-only sandbox is used for multi-file case. On the other hand, xz doesn't go to the strictest mode when processing the last file when more than one file was specified; xzdec does. (cherry picked from commit 3334c71d3d4294a4f6569df3ba9bcf2443dfa501)