From 5d790bb2be77fae2de429d1004bec5fed0c55ba8 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 c44ba5fe6..e277a88c5 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1544,7 +1544,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