summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-05-24 15:41:51 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-05-24 15:44:56 -0400
commitafe33573d7a0d69a615e3a908110eb90a1c3a5a3 (patch)
tree4564efdb47360558f8e9226044986975c65ab8df /pkg/bindings
parent4d6b66a452416b79fe5b6b6615ee5076763a44df (diff)
downloadpodman-afe33573d7a0d69a615e3a908110eb90a1c3a5a3.tar.gz
podman-afe33573d7a0d69a615e3a908110eb90a1c3a5a3.tar.bz2
podman-afe33573d7a0d69a615e3a908110eb90a1c3a5a3.zip
Handle hard links in different directories
Fixes: https://github.com/containers/podman/issues/10444 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index b56afbceb..346d55c47 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -450,7 +450,7 @@ func nTar(excludes []string, sources ...string) (io.ReadCloser, error) {
hdr.Typeflag = tar.TypeLink
hdr.Linkname = orig
hdr.Size = 0
-
+ hdr.Name = name
return tw.WriteHeader(hdr)
}
f, err := os.Open(path)