Skip to content

Commit 6e69ab6

Browse files
ForestEckhardtsophiewigmore
authored andcommitted
Makes linkname absolute from destination
1 parent abc9b6e commit 6e69ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vacation/tar_archive.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (ta TarArchive) Decompress(destination string) error {
149149
}
150150

151151
for _, link := range links {
152-
err := os.Link(linknameFullPath(link.path, link.name), link.path)
152+
err := os.Link(filepath.Join(destination, link.name), link.path)
153153
if err != nil {
154154
return fmt.Errorf("failed to extract link: %s", err)
155155
}

0 commit comments

Comments
 (0)