Fix a segfault when using livestatus, downtime and logrotate.

Issue:		http://tracker.nagios.org/view.php?id=455
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-04-18 08:54:01 +00:00
parent df5da138a6
commit 1b6a0aa634
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351522
2 changed files with 33 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= nagios
PORTVERSION= 3.5.1
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION}

View File

@ -0,0 +1,32 @@
--- ./include/downtime.h.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./include/downtime.h 2014-04-18 10:49:26.000000000 +0200
@@ -39,24 +39,26 @@
char *service_description;
time_t entry_time;
time_t start_time;
- time_t flex_downtime_start; /* Time the flexible downtime started */
time_t end_time;
int fixed;
unsigned long triggered_by;
unsigned long duration;
unsigned long downtime_id;
- int is_in_effect;
- int start_notification_sent;
char *author;
char *comment;
#ifdef NSCORE
unsigned long comment_id;
+#endif
+ int is_in_effect;
+#ifdef NSCORE
int start_flex_downtime;
int incremented_pending_downtime;
// int start_event;
// int stop_event;
#endif
struct scheduled_downtime_struct *next;
+ time_t flex_downtime_start; /* Time the flexible downtime started */
+ int start_notification_sent;
} scheduled_downtime;