diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-05-24 15:41:51 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-05-25 15:27:22 -0400 |
commit | 934f36df5e94dd976e73f4a5cd99f092ecba052a (patch) | |
tree | 91ce264a1dddfcdae4d7b2e4450ac05d46f434ac /pkg/bindings | |
parent | 5eecc2761b4439d8b8f41da38e7669415354d63f (diff) | |
download | podman-934f36df5e94dd976e73f4a5cd99f092ecba052a.tar.gz podman-934f36df5e94dd976e73f4a5cd99f092ecba052a.tar.bz2 podman-934f36df5e94dd976e73f4a5cd99f092ecba052a.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.go | 2 |
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) |