Page 1 of 1

Re: [Nagios-devel] Bug in Dependencies

Posted: Thu Jan 04, 2007 12:23 pm
by Guest
Gerhard Lausser wrote:
> 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)
>

Thanks Gerhard! I'll get this patch (and the corresponding one for host
dependencies) in CVS shortly.


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]