[Nagios-devel] Nagios 1.0a2 Patch to Fix Problem with Processing of Default Object Method

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Nagios 1.0a2 Patch to Fix Problem with Processing of Default Object Method

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C1A109.DEC059D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Nagios 1.0a2 does not process definitions contained in text files under the
normal default object definition method (--with-default-objects). The
following attached patch fixes this problem.

Randy




------=_NextPart_000_000D_01C1A109.DEC059D0
Content-Type: application/octet-stream;
name="xoddefault.c.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="xoddefault.c.patch"

Index: xdata/xoddefault.c=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /liblin/cvsrepo1/nagios/xdata/xoddefault.c,v=0A=
retrieving revision 1.1.1.2=0A=
diff -u -r1.1.1.2 xoddefault.c=0A=
--- xdata/xoddefault.c 2002/01/18 04:50:25 1.1.1.2=0A=
+++ xdata/xoddefault.c 2002/01/20 00:35:34=0A=
@@ -92,7 +92,7 @@=0A=
if(strstr(temp_ptr,"xoddefault_config_file")=3D=3Dtemp_ptr || =
strstr(temp_ptr,"cfg_file")=3D=3Dtemp_ptr){=0A=
=0A=
/* get the config file name */=0A=
- temp_ptr=3Dstrtok(NULL,"\n");=0A=
+ temp_ptr=3Dmy_strtok(NULL,"\n");=0A=
if(temp_ptr=3D=3DNULL)=0A=
continue;=0A=
=0A=

------=_NextPart_000_000D_01C1A109.DEC059D0--






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: omeara@got.net
Locked