Skip to content

Commit

Permalink
Canonicalize more
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jul 18, 2021
1 parent 9302542 commit 31db704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tarballer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl Tarballer {
}
for path in files {
let src = Path::new(&self.work_dir).join(&path);
let src = src.canonicalize().unwrap_or_else(|_| src.to_owned());
append_path(&mut builder, &src, &path)
.with_context(|| format!("failed to tar file '{}'", src.display()))?;
}
Expand Down

0 comments on commit 31db704

Please sign in to comment.