From 65efcdf709a83e6d013b4e65247750c97236d89a Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 23 Aug 2022 10:51:21 -0400 Subject: Allow podman to run in an environment with keys containing spaces Fixes: https://github.com/containers/podman/issues/15251 Signed-off-by: Daniel J Walsh --- pkg/specgenutil/specgen.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pkg/specgenutil') diff --git a/pkg/specgenutil/specgen.go b/pkg/specgenutil/specgen.go index 7392e7b44..c706b396f 100644 --- a/pkg/specgenutil/specgen.go +++ b/pkg/specgenutil/specgen.go @@ -362,10 +362,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions // First transform the os env into a map. We need it for the labels later in // any case. - osEnv, err := envLib.ParseSlice(os.Environ()) - if err != nil { - return fmt.Errorf("error parsing host environment variables: %w", err) - } + osEnv := envLib.Map(os.Environ()) if !s.EnvHost { s.EnvHost = c.EnvHost -- cgit v1.2.3-54-g00ecf