summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-09-18 14:17:49 +0100
committerTony Garnock-Jones <tonyg@lshift.net>2009-09-18 14:17:49 +0100
commit7ddef841e54ea2d5b9f035f3580eee96f419ee88 (patch)
treeae24c3be27fb67e89b66a5bbac246fcb89c57a23
parenteed4bb4ed5256e300c8f25ea93fd1ad30a0f8fd4 (diff)
downloadrabbitmq-server-bug21649.tar.gz
Escape *all* the double-quotes in an arg, not just the first one.bug21649
-rw-r--r--packaging/common/rabbitmq-asroot-script-wrapper2
-rw-r--r--packaging/common/rabbitmq-script-wrapper2
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
)