diff options
| author | Tom Noonan II <thomas.noonan@corvisa.com> | 2015-09-24 11:17:13 -0600 |
|---|---|---|
| committer | Tom Noonan II <thomas.noonan@corvisa.com> | 2015-09-24 11:52:03 -0600 |
| commit | 0105c77d40a903118d58812c65e55adb12b3689e (patch) | |
| tree | 9e14691fa84e684867a867834051528f8a9f7a0a | |
| parent | 77c074b05a391852d91b2d5e563848281e1f6d23 (diff) | |
| download | rabbitmq-server-git-0105c77d40a903118d58812c65e55adb12b3689e.tar.gz | |
Quote arg to prevent shell expansion, Issue-325
| -rw-r--r-- | packaging/common/rabbitmq-script-wrapper | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 845a92c300..79967538e5 100644 --- a/packaging/common/rabbitmq-script-wrapper +++ b/packaging/common/rabbitmq-script-wrapper @@ -22,7 +22,7 @@ fi for arg in "$@" ; do # Wrap each arg in single quotes and wrap single quotes in double quotes, so that they're passed through cleanly. - arg=`printf %s $arg | sed $SED_OPT -e "s/'/'\"'\"'/g"` + arg=`printf %s "$arg" | sed $SED_OPT -e "s/'/'\"'\"'/g"` CMDLINE="${CMDLINE} '${arg}'" done |
