Ignore tar header entries

In particular, these are emitted by 'git archive' (in fetchGit).
This commit is contained in:
Eelco Dolstra
2019-11-26 22:07:28 +01:00
parent d33dd6e6c0
commit f2bd847092
+1
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))),
}
}