diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-27 21:42:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 21:42:38 +0200 |
commit | 2b7bc9b101887a789a9fc0282d448efad824404f (patch) | |
tree | c4e1f76abea909d901967eb693007e2e7a661c58 /libpod | |
parent | 956caf303a80105845b8e94b7018416abc59a474 (diff) | |
parent | e1ab449e211fc4e89a94b13ca30b064746087552 (diff) | |
download | podman-2b7bc9b101887a789a9fc0282d448efad824404f.tar.gz podman-2b7bc9b101887a789a9fc0282d448efad824404f.tar.bz2 podman-2b7bc9b101887a789a9fc0282d448efad824404f.zip |
Merge pull request #7094 from rhatdan/volume
When chowning we should not follow symbolic link
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index b2e23b3a8..80b160919 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1557,7 +1557,7 @@ func (c *Container) chownVolume(volumeName string) error { if err != nil { return err } - if err := os.Chown(path, uid, gid); err != nil { + if err := os.Lchown(path, uid, gid); err != nil { return err } return nil |