diff --git a/keywords.go b/keywords.go index 8e199ce..f629519 100644 --- a/keywords.go +++ b/keywords.go @@ -206,7 +206,7 @@ var ( } linkKeywordFunc = func(path string, info os.FileInfo, r io.Reader) (string, error) { if sys, ok := info.Sys().(*tar.Header); ok { - return sys.Linkname, nil + return fmt.Sprintf("link=%s", sys.Linkname), nil } if info.Mode()&os.ModeSymlink != 0 {