summaryrefslogtreecommitdiffstats
path: root/src/daemon/Settings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add OPT_LIST mechanism to handle multiply occurring optionsDenys Vlasenko2011-01-201-1/+1
| | | | | | | This allowed to convert abrt-action-bugzilla, abrt-action-rhtsupport and abrt-action-kerneloops to parse_opts() Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce and use new helper function list_free_with_freeDenys Vlasenko2011-01-201-15/+9
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* disable SetSettings dbus call codeDenys Vlasenko2011-01-201-11/+11
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* convert abrt-action-save-package-data.cpp to CDenys Vlasenko2011-01-201-1/+0
| | | | | | The conversion is trivial: a few tweaks to one header file Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove [ Cron ] handlingDenys Vlasenko2011-01-171-131/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in ↵Denys Vlasenko2011-01-171-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abrtd Patch adds new tool: $ abrt-dump-oops Usage: abrt-dump-oops [-vsrdow] FILE Extract oops from syslog/dmesg file -v, --verbose Be verbose -s Log to syslog -r Parse kernel's message buffer before parsing FILE -d Create ABRT dump for every oops found -o Print found oopses on standard output -w Do not exit, watch the file for new oopses It extends dumpoops. Extensions: * it can watch the syslog using -w option (uses inotify) * it can scan dmesg buffer too In this way, it also becomes a replacement for KerneloopsScanner plugin: oops-detecting logic is taken verbatim from KerneloopsScanner source. abrtd is changed to start it if it sees this directive in abrt.conf: [ LogScanners ] abrt-dump-oops = abrt-dump-oops -drw /var/log/messages Default abrt.conf is changed to have such line. Patch doesn't remove KerneloopsScanner plugin and dumpoops binary yet, I will do it in a separate trivial patch. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add abrt_ prefixes to abrt-internal functions in libabrt.soDenys Vlasenko2010-12-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove sqlite DBDenys Vlasenko2010-11-231-15/+0
| | | | | | | | | | | | | | | | | | | | | | This change removes sqlite database. Database was used to find dump dirs by [UID:]UUID. This patch uses more natural way: dump dirs are addressed by their directory names. DB was also used to produce a list of dump dirs. Now it is done by iterating over the /var/spool/abrt directory. And finally, DB was also used to find duplicate UUIDs. Now it is done by iterating over the /var/spool/abrt directory. Crash count, "inform all" and reporting result message are moved from DB field to a file in dump dir. "Reported" DB field is deleted - if message != "", then this dump was reported. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove polkitNikola Pajkovsky2010-11-191-12/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* Cleanup. Remove last vestiges of AnalyzerActionsAndReporters.Denys Vlasenko2010-11-181-100/+0
| | | | | | Also: made one function static, made dd_delete() call dd_close(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtd: remove support for ActionsAndReporters, abrt_event.conf supersedes itDenys Vlasenko2010-11-081-10/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce and use xmalloc_fgets/fgetlineDenys Vlasenko2010-10-221-18/+21
| | | | | | | This fixes problems of having long lines truncated - and we do have very long lines sometimes - curl errors with HTML, list of debuginfos etc. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Settings.cpp: avoid double free corruptionNikola Pajkovsky2010-10-061-0/+5
| | | | | | | | | | | | I meant, that settings_free() should not only do free(g_settings_*); but also should do g_settings_* = NULL; Otherwise calling settings_free() twice will cause double-free and likely segfault. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* g_settings_sWatchCrashdumpArchiveDir uses char*Nikola Pajkovsky2010-09-241-2/+4
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* g_settings_sDatabase uses char*Nikola Pajkovsky2010-09-241-2/+10
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* g_settings_setBlackListedPaths uses GListNikola Pajkovsky2010-09-241-28/+7
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* g_settings_setBlackListedPkgs uses GListNikola Pajkovsky2010-09-241-2/+31
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* g_settings_setOpenGPGPublicKeys uses GListNikola Pajkovsky2010-09-241-2/+11
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* eliminate LoadOpenGPGPublicKey wrapperDenys Vlasenko2010-09-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtlib.h: include <assert.h> and "strbuf.h"Denys Vlasenko2010-08-301-2/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* lower case direcotry(no code changed)Nikola Pajkovsky2010-08-101-0/+562
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>