diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-18 14:17:49 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-18 14:17:49 +0100 |
commit | 7ddef841e54ea2d5b9f035f3580eee96f419ee88 (patch) | |
tree | ae24c3be27fb67e89b66a5bbac246fcb89c57a23 /packaging | |
parent | eed4bb4ed5256e300c8f25ea93fd1ad30a0f8fd4 (diff) | |
download | rabbitmq-server-7ddef841e54ea2d5b9f035f3580eee96f419ee88.tar.gz |
Escape *all* the double-quotes in an arg, not just the first one.bug21649
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/common/rabbitmq-asroot-script-wrapper | 2 | ||||
-rw-r--r-- | packaging/common/rabbitmq-script-wrapper | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/common/rabbitmq-asroot-script-wrapper b/packaging/common/rabbitmq-asroot-script-wrapper index 0dd1c0fb..9ef59ad7 100644 --- a/packaging/common/rabbitmq-asroot-script-wrapper +++ b/packaging/common/rabbitmq-asroot-script-wrapper @@ -33,7 +33,7 @@ # Escape spaces and quotes, because shell is revolting. for arg in "$@" ; do # Escape quotes in parameters, so that they're passed through cleanly. - arg=$(sed -e 's/"/\\"/' <<-END + arg=$(sed -e 's/"/\\"/g' <<-END $arg END ) diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 94d72f16..0c4bd0a8 100644 --- a/packaging/common/rabbitmq-script-wrapper +++ b/packaging/common/rabbitmq-script-wrapper @@ -33,7 +33,7 @@ # Escape spaces and quotes, because shell is revolting. for arg in "$@" ; do # Escape quotes in parameters, so that they're passed through cleanly. - arg=$(sed -e 's/"/\\"/' <<-END + arg=$(sed -e 's/"/\\"/g' <<-END $arg END ) |