Ignore tar header entries

In particular, these are emitted by 'git archive' (in fetchGit).
This commit is contained in:
Eelco Dolstra 2019-09-11 15:03:17 +02:00
parent d33dd6e6c0
commit f2bd847092

View file

@ -37,6 +37,7 @@ pub fn unpack_tarfile(source: Source, dest_dir: &str) -> Result<(), Error> {
tar::EntryType::Symlink => {
std::os::unix::fs::symlink(file.header().link_name()?.unwrap(), dest_file)?;
}
tar::EntryType::XGlobalHeader | tar::EntryType::XHeader => {}
t => return Err(Error::Misc(format!("unsupported tar entry type '{:?}'", t))),
}
}