On 12/9/05, Chet Luther <[EMAIL PROTECTED]> wrote:
> This is somewhere between a missing feature and a bug, but it is quite
> inconsistent. Here's a quick patch to fix it. It is applied against
> the current CVS tree.
>
> <snipped badly formatted patch>
Sorry about that, gmail butchered the formatting on that patch. I'm
attaching it instead.
--
Chet Luther
[EMAIL PROTECTED]
diff -urN nagios-orig/xdata/xodtemplate.c nagios/xdata/xodtemplate.c
--- nagios-orig/xdata/xodtemplate.c 2005-11-16 03:49:35.000000000 -0500
+++ nagios/xdata/xodtemplate.c 2005-12-09 10:04:17.000000000 -0500
@@ -5874,6 +5874,8 @@
this_contact->contact_name=strdup(template_contact->contact_name);
if(this_contact->alias==NULL && template_contact->alias!=NULL)
this_contact->alias=strdup(template_contact->alias);
+ if(this_contact->contactgroups==NULL &&
template_contact->contactgroups!=NULL)
+
this_contact->contactgroups=strdup(template_contact->contactgroups);
if(this_contact->email==NULL && template_contact->email!=NULL)
this_contact->email=strdup(template_contact->email);
if(this_contact->pager==NULL && template_contact->pager!=NULL)