summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-07-27 13:33:27 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-07-27 13:33:31 -0400
commite1ab449e211fc4e89a94b13ca30b064746087552 (patch)
treee86f90c1a304786083ab47d581a85ca02e0c2058 /libpod/container_internal.go
parent55a7faf2b8f09034064029887cc85811a7dae582 (diff)
downloadpodman-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>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
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