Skip to content

Commit

Permalink
Merge pull request #7094 from rhatdan/volume
Browse files Browse the repository at this point in the history
When chowning we should not follow symbolic link
  • Loading branch information
openshift-merge-robot authored Jul 27, 2020
2 parents 956caf3 + e1ab449 commit 2b7bc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b7bc9b

Please sign in to comment.