summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-24 13:40:26 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-24 15:02:11 +0100
commitbc3c5be2fb0fe652db53b931e1ae4a42da6fa014 (patch)
treeedd4e423dede5c6c2ac6f7722beb60fbef92f59c /utils
parent93138541f3119b81c170e5ce904a8c4e6cece842 (diff)
downloadpodman-bc3c5be2fb0fe652db53b931e1ae4a42da6fa014.tar.gz
podman-bc3c5be2fb0fe652db53b931e1ae4a42da6fa014.tar.bz2
podman-bc3c5be2fb0fe652db53b931e1ae4a42da6fa014.zip
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 <pholzing@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.go4
1 files changed, 1 insertions, 3 deletions
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 {