Skip to content

Commit 4cf163f

Browse files
committed
Don't follow symlinks when creating tarball
Closes #11
1 parent d78ecaf commit 4cf163f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

warp-packer/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ fn create_tgz(dir: &Path, out: &Path) -> io::Result<()> {
9090
let f = fs::File::create(out)?;
9191
let gz = GzEncoder::new(f, Compression::best());
9292
let mut tar = tar::Builder::new(gz);
93+
tar.follow_symlinks(false);
9394
tar.append_dir_all(".", dir)?;
9495
Ok(())
9596
}

0 commit comments

Comments
 (0)