summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/build.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-25 02:39:51 -0700
committerGitHub <noreply@github.com>2021-05-25 02:39:51 -0700
commit78df4f6fb2e2a404ace69219a50652f4335b7ce1 (patch)
tree2d7cf493989d8f58b4208208c09bef6742aee327 /pkg/bindings/images/build.go
parenta6f0ac229f57c1ac93fe0604dd923f704e976d9a (diff)
parentafe33573d7a0d69a615e3a908110eb90a1c3a5a3 (diff)
downloadpodman-78df4f6fb2e2a404ace69219a50652f4335b7ce1.tar.gz
podman-78df4f6fb2e2a404ace69219a50652f4335b7ce1.tar.bz2
podman-78df4f6fb2e2a404ace69219a50652f4335b7ce1.zip
Merge pull request #10446 from rhatdan/build
Handle hard links in different directories
Diffstat (limited to 'pkg/bindings/images/build.go')
-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)