[Nagios-devel] Bug in Dependencies
Posted: Wed Jan 03, 2007 12:37 pm
Hi Ethan,
i tested the current cvs code and it reported me (unjustified) circular
dependencies. I think this patch will help:
Greetings from Munich,
Gerhard
--- nagios-cvs/common/objects.c 2006-09-18 19:03:50.000000000 +0200
+++ nagios-consol/common/objects.c 2006-10-13 19:17:03.064383605 +0200
@@ -4119,7 +4119,7 @@
for(temp_sd=servicedependency_list;temp_sd!=NULL;temp_sd=temp_sd->next){
/* only check parent dependencies */
- if(dep->master_service_ptr==temp_sd->dependent_service_ptr)
+ if(dep->master_service_ptr!=temp_sd->dependent_service_ptr)
continue;
if(check_for_circular_servicedependency_path(root_dep,temp_sd,dependency_typ
e)==TRUE)
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
i tested the current cvs code and it reported me (unjustified) circular
dependencies. I think this patch will help:
Greetings from Munich,
Gerhard
--- nagios-cvs/common/objects.c 2006-09-18 19:03:50.000000000 +0200
+++ nagios-consol/common/objects.c 2006-10-13 19:17:03.064383605 +0200
@@ -4119,7 +4119,7 @@
for(temp_sd=servicedependency_list;temp_sd!=NULL;temp_sd=temp_sd->next){
/* only check parent dependencies */
- if(dep->master_service_ptr==temp_sd->dependent_service_ptr)
+ if(dep->master_service_ptr!=temp_sd->dependent_service_ptr)
continue;
if(check_for_circular_servicedependency_path(root_dep,temp_sd,dependency_typ
e)==TRUE)
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]