summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorhunt <hunt>2007-08-20 17:55:03 +0000
committerhunt <hunt>2007-08-20 17:55:03 +0000
commit8c711d30367365fa6a036e468eba4401d26131a3 (patch)
treee277133ca28d48b7fb841d6866953576ec9dd544 /buildrun.cxx
parent322566b3574d9cb452e20f9b74bc0b7d3d9dcfe6 (diff)
downloadsystemtap-steved-8c711d30367365fa6a036e468eba4401d26131a3.tar.gz
systemtap-steved-8c711d30367365fa6a036e468eba4401d26131a3.tar.xz
systemtap-steved-8c711d30367365fa6a036e468eba4401d26131a3.zip
2007-08-20 Martin Hunt <hunt@redhat.com>
PR2424 From Lai Jiangshan <laijs@cn.fujitsu.com> * util.cxx (cmdstr_quoted): New. Properly quote command string. * buildrun.cxx (run_pass): Call cmdstr_quoted().
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 221d0463..2fb3439c 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -139,7 +139,7 @@ run_pass (systemtap_session& s)
staprun_cmd += "-d " + stringify(getpid()) + " ";
if (s.cmd != "")
- staprun_cmd += "-c \"" + s.cmd + "\" ";
+ staprun_cmd += "-c " + cmdstr_quoted(s.cmd) + " ";
if (s.target_pid)
staprun_cmd += "-t " + stringify(s.target_pid) + " ";