Skip to content

Commit

Permalink
Don't follow symlinks when creating tarball
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
dgiagio committed Oct 16, 2018
1 parent d78ecaf commit 4cf163f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warp-packer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn create_tgz(dir: &Path, out: &Path) -> io::Result<()> {
let f = fs::File::create(out)?;
let gz = GzEncoder::new(f, Compression::best());
let mut tar = tar::Builder::new(gz);
tar.follow_symlinks(false);
tar.append_dir_all(".", dir)?;
Ok(())
}
Expand Down

0 comments on commit 4cf163f

Please sign in to comment.