diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-15 14:52:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 14:52:45 -0700 |
commit | 3754f58499ad17386d8faa7c2fab1d9cc8231923 (patch) | |
tree | 5fd61e85cccaabc6ae7ad0166d739f0d5443ec54 /libpod/container_internal.go | |
parent | 6e4c32967ec02cdc33b801df8b5730dffce9b8a3 (diff) | |
parent | 9d81be961491ac965f6cc9fd96884833c0165334 (diff) | |
download | podman-3754f58499ad17386d8faa7c2fab1d9cc8231923.tar.gz podman-3754f58499ad17386d8faa7c2fab1d9cc8231923.tar.bz2 podman-3754f58499ad17386d8faa7c2fab1d9cc8231923.zip |
Merge pull request #2643 from rhatdan/volumes
Make sure buildin volumes have the same ownership and permissions as …
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 872802016..ac2d65342 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1429,5 +1429,9 @@ func (c *Container) copyWithTarFromImage(src, dest string) error { } a := archive.NewDefaultArchiver() source := filepath.Join(mountpoint, src) + + if err = c.copyOwnerAndPerms(source, dest); err != nil { + return err + } return a.CopyWithTar(source, dest) } |