summaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2020-03-31 10:20:05 -0700
committerKir Kolyshkin <kolyshkin@gmail.com>2020-04-01 15:30:59 -0700
commitf2c42a3958d12b45375aeb2384a3a8a103203c1c (patch)
tree9f6f9c1d4456145de6965f2a73ff3d47f6093908 /pkg/spec/spec.go
parentc11c5e180a6e00e0093f51b050962ee1e2e30f7a (diff)
downloadpodman-f2c42a3958d12b45375aeb2384a3a8a103203c1c.tar.gz
podman-f2c42a3958d12b45375aeb2384a3a8a103203c1c.tar.bz2
podman-f2c42a3958d12b45375aeb2384a3a8a103203c1c.zip
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 <kolyshkin@gmail.com>
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r--pkg/spec/spec.go4
1 files changed, 1 insertions, 3 deletions
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()