[icinga-checkins] icinga.org: icinga-core/r1.8: Fix cleanup of old checkresult files in reaper #3937

git at icinga.org git at icinga.org
Wed Apr 10 20:54:58 CEST 2013


Module: icinga-core
Branch: r1.8
Commit: 120b82c7fb75e579e88e302c63d93513d1531a4b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=120b82c7fb75e579e88e302c63d93513d1531a4b

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Apr  9 11:53:32 2013 +0200

Fix cleanup of old checkresult files in reaper #3937

delete_check_result_file() expects a full file path and not only
a filename.

refs #3937

---

 base/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/base/utils.c b/base/utils.c
index 9a21842..146ad48 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -2772,7 +2772,7 @@ int process_check_result_queue(char *dirname) {
 			 * otherwise we will leave old files there
 			 */
 			if (stat_buf.st_mtime + max_check_result_file_age < time(NULL)) {
-				delete_check_result_file(dirfile->d_name);
+				delete_check_result_file(file);
 				continue;
 			}
 





More information about the icinga-checkins mailing list