From bc3c5be2fb0fe652db53b931e1ae4a42da6fa014 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 24 Nov 2021 13:40:26 +0100 Subject: checkpoint do not modify XDG_RUNTIME_DIR We should not modify the XDG_RUNTIME_DIR env value during runtime of libpod, this can cause hard to find bugs. Only set it for the OCI runtime, this matches the other commands such as start, stop, kill... [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger --- utils/utils.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/utils.go b/utils/utils.go index f2e7beef9..80eed7536 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -43,9 +43,7 @@ func ExecCmdWithStdStreams(stdin io.Reader, stdout, stderr io.Writer, env []stri cmd.Stdin = stdin cmd.Stdout = stdout cmd.Stderr = stderr - if env != nil { - cmd.Env = env - } + cmd.Env = env err := cmd.Run() if err != nil { -- cgit v1.2.3-54-g00ecf