Skip to content

Commit

Permalink
Makes linkname absolute from destination
Browse files Browse the repository at this point in the history
  • Loading branch information
ForestEckhardt authored and sophiewigmore committed Nov 15, 2021
1 parent abc9b6e commit 6e69ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vacation/tar_archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (ta TarArchive) Decompress(destination string) error {
}

for _, link := range links {
err := os.Link(linknameFullPath(link.path, link.name), link.path)
err := os.Link(filepath.Join(destination, link.name), link.path)
if err != nil {
return fmt.Errorf("failed to extract link: %s", err)
}
Expand Down

0 comments on commit 6e69ab6

Please sign in to comment.