diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-27 13:33:27 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-27 13:33:31 -0400 |
commit | e1ab449e211fc4e89a94b13ca30b064746087552 (patch) | |
tree | e86f90c1a304786083ab47d581a85ca02e0c2058 | |
parent | 55a7faf2b8f09034064029887cc85811a7dae582 (diff) | |
download | podman-e1ab449e211fc4e89a94b13ca30b064746087552.tar.gz podman-e1ab449e211fc4e89a94b13ca30b064746087552.tar.bz2 podman-e1ab449e211fc4e89a94b13ca30b064746087552.zip |
When chowning we should not follow symbolic link
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-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 |