diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-18 13:21:15 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-18 13:21:15 +0100 |
commit | 2ccbb0e4bce7c22a44e67f2de9e5a155bd0aed86 (patch) | |
tree | 4ea69f9bf08405c742da54409508fa30d925c957 /lib/Plugins/RunApp.cpp | |
parent | c76bab5d699030a22ab85b67422e5092d92fa376 (diff) | |
download | abrt-2ccbb0e4bce7c22a44e67f2de9e5a155bd0aed86.tar.gz abrt-2ccbb0e4bce7c22a44e67f2de9e5a155bd0aed86.tar.xz abrt-2ccbb0e4bce7c22a44e67f2de9e5a155bd0aed86.zip |
add support for \" escaping in config file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/RunApp.cpp')
-rw-r--r-- | lib/Plugins/RunApp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Plugins/RunApp.cpp b/lib/Plugins/RunApp.cpp index a2aa698..f7cbc01 100644 --- a/lib/Plugins/RunApp.cpp +++ b/lib/Plugins/RunApp.cpp @@ -52,6 +52,7 @@ void CActionRunApp::Run(const char *pActionDir, const char *pArgs) */ //Can do it using chdir() in child if we'd open-code popen string cd_and_cmd = ssprintf("cd '%s'; %s", pActionDir, cmd); + VERB1 log("RunApp: executing '%s'", cd_and_cmd.c_str()); FILE *fp = popen(cd_and_cmd.c_str(), "r"); if (fp == NULL) { @@ -65,7 +66,8 @@ void CActionRunApp::Run(const char *pActionDir, const char *pArgs) char line[1024]; while (fgets(line, 1024, fp) != NULL) { - output += line; + if (args.size() > FILENAME) + output += line; } pclose(fp); |