From a20a7c6111ee2dbc9aea9f5065821e2c7d9b7eda Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Mon, 12 Nov 2018 13:47:30 -0800 Subject: [PATCH] Fix sudo shim causing incorrect argument parsing (#310) --- dockerfiles/dind/sudo | 2 +- dockerfiles/pwm/sudo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/dind/sudo b/dockerfiles/dind/sudo index c832c17..637614a 100755 --- a/dockerfiles/dind/sudo +++ b/dockerfiles/dind/sudo @@ -2,4 +2,4 @@ # This is shim to help with the case were pasted commands from a readme assume you are not root. Since this isto be run by root, it should effectively be a dummy command that allows the parameters to pass through. -exec $@ +exec "$@" diff --git a/dockerfiles/pwm/sudo b/dockerfiles/pwm/sudo index c832c17..637614a 100755 --- a/dockerfiles/pwm/sudo +++ b/dockerfiles/pwm/sudo @@ -2,4 +2,4 @@ # This is shim to help with the case were pasted commands from a readme assume you are not root. Since this isto be run by root, it should effectively be a dummy command that allows the parameters to pass through. -exec $@ +exec "$@"