Skip to content

Commit

Permalink
Ignore tar header entries
Browse files Browse the repository at this point in the history
In particular, these are emitted by 'git archive' (in fetchGit).
  • Loading branch information
edolstra committed Sep 11, 2019
1 parent 64fa31f commit d6d7e86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nix-rust/src/tarfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
}
}
Expand Down

0 comments on commit d6d7e86

Please sign in to comment.