From 6e69ab68f8622dab49b0f3a6ea04120cb3de1633 Mon Sep 17 00:00:00 2001 From: Forest Eckhardt Date: Thu, 11 Nov 2021 19:47:10 +0000 Subject: [PATCH] Makes linkname absolute from destination --- vacation/tar_archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vacation/tar_archive.go b/vacation/tar_archive.go index 8561e279..bcd7ae42 100644 --- a/vacation/tar_archive.go +++ b/vacation/tar_archive.go @@ -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) }