summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 15:15:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 15:15:48 +0100
commitbec6503010767bf08b5e54ba3580d0911e816183 (patch)
treefddfa7ea867eaa5f85a2889388b49006e685cb7c /src/Daemon
parentbce8619db807bb1729563d2b64b84497b7fe93b8 (diff)
parent27263ba6c91c4e9aca43e4b7dbfb7998418f953a (diff)
downloadabrt-bec6503010767bf08b5e54ba3580d0911e816183.tar.gz
abrt-bec6503010767bf08b5e54ba3580d0911e816183.tar.xz
abrt-bec6503010767bf08b5e54ba3580d0911e816183.zip
Merge branch 'master' into rhel6
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/MiddleWare.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp
index 5a12d764..a89070e9 100644
--- a/src/Daemon/MiddleWare.cpp
+++ b/src/Daemon/MiddleWare.cpp
@@ -601,15 +601,16 @@ static mw_result_t SavePackageDescriptionToDebugDump(
const char *basename = strrchr(pExecutable, '/');
if (basename) basename++; else basename = pExecutable;
- /* Add "perl" and such as needed */
- if (strcmp(basename, "python") == 0)
- {
+ /* Add more interpreters as needed */
+ if (strcmp(basename, "python") == 0
+ || strcmp(basename, "perl") == 0
+ ) {
// TODO: we don't verify that python executable is not modified
// or that python package is properly signed
// (see CheckFingerprint/CheckHash below)
/* Try to find package for the script by looking at argv[1].
- * This will work only of the cmdline contains the whole path.
+ * This will work only if the cmdline contains the whole path.
* Example: python /usr/bin/system-control-network
*/
char *script_name = get_argv1_if_full_path(cmdline);