pub fn unpack_tar<R: Read>(archive: Archive<R>, dest: &Path) -> Result<()>Expand description
Unpacks a tar archive into dest. A source tree is untrusted input: a link in it could lead a read (\input) or a
Lua write outside the job (OXIDIZED_DESIGN_DIVERGENCES #1081). So a symbolic link is made, after every other entry,
only when its target, resolved component by component through the links already there, stays inside dest (zip
9.7’s extract rule, zip/src/path.rs resolve_enclosed); a hard link only to a file inside dest (tar’s
own check). Every other link, and every entry whose path would leave dest, is skipped with a counted Warning.