Skip to content

Commit 1343448

Browse files
committed
definitely don't follow symlnks (#384)
We may create all kinds of strange symlinks for testing.
1 parent 9b5a8a2 commit 1343448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tools/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ fn create_archive_if_not_on_ci(source_dir: &Path, archive: &Path, script_identit
171171
{
172172
let mut ar = tar::Builder::new(&mut buf);
173173
ar.mode(tar::HeaderMode::Deterministic);
174+
ar.follow_symlinks(false);
174175
ar.append_dir_all(".", source_dir)?;
175176
ar.finish()?;
176177
}

0 commit comments

Comments
 (0)