mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
...
This commit is contained in:
@@ -171,8 +171,10 @@ func ExtractAllFromTar(tr *tar.Reader, dest_path string, optss ...TarExtractOpti
|
||||
if len(optss) > 0 {
|
||||
opts = optss[0]
|
||||
}
|
||||
if dest_path, err = filepath.Abs(dest_path); err != nil {
|
||||
return
|
||||
if !filepath.IsAbs(dest_path) {
|
||||
if dest_path, err = filepath.Abs(dest_path); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
if dest_path, err = filepath.EvalSymlinks(dest_path); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user