summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Daemon.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-03 17:43:18 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-03 17:43:18 +0100
commita756114f9d29983d9505309efb3b6f0ed09f946f (patch)
treee86f75e53b1b910dc691d2aff11fc278821dfe7b /src/Daemon/Daemon.cpp
parent3bd822eac9229ac124fec89f7aa926cc7220972c (diff)
downloadabrt-a756114f9d29983d9505309efb3b6f0ed09f946f.tar.gz
abrt-a756114f9d29983d9505309efb3b6f0ed09f946f.tar.xz
abrt-a756114f9d29983d9505309efb3b6f0ed09f946f.zip
hopefully fix rhbz#541854: when we trim the dir, we must delete it from DB too
Also added a more robust code to resis SEGVing if directory doesn't exist. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r--src/Daemon/Daemon.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index c2d22656..4cfd0491 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -474,7 +474,8 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
) {
log("Size of '%s' >= %u MB, deleting '%s'", DEBUG_DUMPS_DIR, g_settings_nMaxCrashReportsSize, worst_dir.c_str());
g_pCommLayer->QuotaExceed(_("Report size exceeded the quota. Please check system's MaxCrashReportsSize value in abrt.conf."));
- delete_debug_dump_dir(concat_path_file(DEBUG_DUMPS_DIR, worst_dir.c_str()).c_str());
+ /* deletes both directory and DB record */
+ DeleteDebugDump_by_dir(concat_path_file(DEBUG_DUMPS_DIR, worst_dir.c_str()).c_str());
worst_dir = "";
}