Skip to content

Commit a45a00f

Browse files
committed
Fixed unarchiving of links.
1 parent 6cd746c commit a45a00f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/unarchiver/unarchiver.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ func (ua *Unarchiver) Unarchive(archiveStream io.Reader, destination string) err
6464
}
6565

6666
if file.LinkTarget != "" {
67-
target := filepath.Join(destination, file.LinkTarget)
6867
if file.Mode()&os.ModeSymlink != 0 {
69-
return writeNewSymbolicLink(path, target)
68+
return writeNewSymbolicLink(path, file.LinkTarget)
7069
}
71-
return writeNewHardLink(path, target)
70+
return writeNewHardLink(path, file.LinkTarget)
7271
}
7372

7473
f, err := file.Open()

0 commit comments

Comments
 (0)