From 8c711d30367365fa6a036e468eba4401d26131a3 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 20 Aug 2007 17:55:03 +0000 Subject: 2007-08-20 Martin Hunt PR2424 From Lai Jiangshan * util.cxx (cmdstr_quoted): New. Properly quote command string. * buildrun.cxx (run_pass): Call cmdstr_quoted(). --- buildrun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildrun.cxx') 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) + " "; -- cgit