abrt/free_space_check.patch

30 lines
1022 B
Diff

commit e91b22a9654bf9912f3f88c917773a96ff7733a3
Author: Martin Milata <mmilata@redhat.com>
Date: Thu Sep 8 16:29:01 2011 +0200
Fix free space checking
The g_settings_dump_location was freed before it was passed to the free
space check, thus preventing it from working.
diff --git a/src/daemon/abrt-server.c b/src/daemon/abrt-server.c
index 983706e..330f85f 100644
--- a/src/daemon/abrt-server.c
+++ b/src/daemon/abrt-server.c
@@ -143,7 +143,6 @@ static int create_debug_dump()
/* Trim old crash dumps if necessary */
load_abrt_conf();
- free_abrt_conf_data(); /* can do this because we need only g_settings_nMaxCrashReportsSize */
if (g_settings_nMaxCrashReportsSize > 0)
{
/* x1.25 and round up to 64m: go a bit up, so that usual in-daemon trimming
@@ -154,6 +153,7 @@ static int create_debug_dump()
check_free_space(maxsize);
trim_debug_dumps(DEBUG_DUMPS_DIR, maxsize * (double)(1024*1024), path);
}
+ free_abrt_conf_data();
free(path);