From 8cf58297d9743bdbfdddb605cc9cefe0c6273ee5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 21 Jan 2010 18:45:21 +0100 Subject: TicketUploader and FileTransfer plugins: fixes after a round of testing for one, FileTransfer now would not use current dir as a storage for temp files. Signed-off-by: Denys Vlasenko --- src/Daemon/Settings.cpp | 5 ++--- src/Daemon/abrt.conf | 7 +++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Daemon') diff --git a/src/Daemon/Settings.cpp b/src/Daemon/Settings.cpp index 73736f13..6cf32a68 100644 --- a/src/Daemon/Settings.cpp +++ b/src/Daemon/Settings.cpp @@ -77,7 +77,7 @@ static set_string_t ParseList(const char* pList) return set; } -/* (What format do we parse here?) */ +/* Format: name, name(param),name("param with spaces \"and quotes\"") */ static vector_pair_string_string_t ParseListWithArgs(const char *pValue) { VERB3 log(" ParseListWithArgs(%s)", pValue); @@ -92,7 +92,6 @@ static vector_pair_string_string_t ParseListWithArgs(const char *pValue) { if (is_quote && pValue[ii] == '\\' && pValue[ii+1]) { - item += pValue[ii]; ii++; item += pValue[ii]; continue; @@ -100,7 +99,7 @@ static vector_pair_string_string_t ParseListWithArgs(const char *pValue) if (pValue[ii] == '"') { is_quote = !is_quote; - item += pValue[ii]; + /*item += pValue[ii]; - wrong! name("param") must be == name(param) */ continue; } if (is_quote) diff --git a/src/Daemon/abrt.conf b/src/Daemon/abrt.conf index acf8566f..406289fe 100644 --- a/src/Daemon/abrt.conf +++ b/src/Daemon/abrt.conf @@ -13,11 +13,13 @@ BlackList = nspluginwrapper Database = SQLite3 # Max size for crash storage [MiB] MaxCrashReportsSize = 1000 -# Vector of actions and reporters which are activated immediately after a crash occurs +# Vector of actions and reporters which are activated immediately after a crash occurs, +# comma separated. #ActionsAndReporters = Mailx("[abrt] new crash was detected") +#ActionsAndReporters = FileTransfer("store") ActionsAndReporters = RunApp("test x\"`cat component`\" = x\"xorg-x11-server-Xorg\" && cp /var/log/Xorg.0.log .") -# What actions or reporters to run on specified crash type +# What actions or reporters to run on each crash type [ AnalyzerActionsAndReporters ] Kerneloops = KerneloopsReporter CCpp = Bugzilla, Logger @@ -29,3 +31,4 @@ Python = Bugzilla, Logger # h:m - at h:m an action plugin is activated # s - every s seconds is an action plugin activated 120 = KerneloopsScanner +#02:00 = FileTransfer -- cgit