Return "link" keyword along with its value
Originally only returning `Sys.linkname` when evaluating a tar header's link field. We want it to be in the form of keyword=value instead. Signed-off-by: Stephen Chung <schung@redhat.com>
This commit is contained in:
parent
4b3a9bfd02
commit
bacbea465f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue