mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-17 21:50:57 +02:00
remove unnecessary filepath.Join since dest is always an absolute path
This commit is contained in:
+2
-2
@@ -245,8 +245,8 @@ func extractFile(dest string, hdr *tar.Header, tr io.Reader) error {
|
||||
return errors.Wrapf(err, "error removing %s to make way for new link", hdr.Name)
|
||||
}
|
||||
}
|
||||
link := filepath.Join(dest, hdr.Linkname)
|
||||
if err := os.Link(filepath.Clean(filepath.Join("/", link)), path); err != nil {
|
||||
link := filepath.Clean(filepath.Join(dest, hdr.Linkname))
|
||||
if err := os.Link(link, path); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user