From f2c42a3958d12b45375aeb2384a3a8a103203c1c Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 31 Mar 2020 10:20:05 -0700 Subject: pkg/spec.InitFSMounts: fix mount opts in place ... rather than create a new slice and then make the caller replace the original with the new one. Signed-off-by: Kir Kolyshkin --- pkg/spec/spec.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg/spec/spec.go') diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index d4fd5976f..194d2fcb3 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -371,11 +371,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM // BIND MOUNTS configSpec.Mounts = SupercedeUserMounts(userMounts, configSpec.Mounts) // Process mounts to ensure correct options - finalMounts, err := InitFSMounts(configSpec.Mounts) - if err != nil { + if err := InitFSMounts(configSpec.Mounts); err != nil { return nil, err } - configSpec.Mounts = finalMounts // BLOCK IO blkio, err := config.CreateBlockIO() -- cgit v1.2.3-54-g00ecf