From afe33573d7a0d69a615e3a908110eb90a1c3a5a3 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 24 May 2021 15:41:51 -0400 Subject: Handle hard links in different directories Fixes: https://github.com/containers/podman/issues/10444 Signed-off-by: Daniel J Walsh --- pkg/bindings/images/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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) -- cgit v1.2.3-54-g00ecf