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

git at icinga.org git at icinga.org
Sat Apr 13 15:57:16 CEST 2013


Module: icinga-core
Branch: mfriedrich/ido
Commit: 8a2e62e7b14e597cfce075a1bdc954ee41460009
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=8a2e62e7b14e597cfce075a1bdc954ee41460009

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