Skip to content

Commit 31db704

Browse files
committed
Canonicalize more
1 parent 9302542 commit 31db704

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tarballer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl Tarballer {
6363
}
6464
for path in files {
6565
let src = Path::new(&self.work_dir).join(&path);
66+
let src = src.canonicalize().unwrap_or_else(|_| src.to_owned());
6667
append_path(&mut builder, &src, &path)
6768
.with_context(|| format!("failed to tar file '{}'", src.display()))?;
6869
}

0 commit comments

Comments
 (0)