From e1ab449e211fc4e89a94b13ca30b064746087552 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 27 Jul 2020 13:33:27 -0400 Subject: When chowning we should not follow symbolic link Signed-off-by: Daniel J Walsh --- libpod/container_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf