[Nagios-devel] Nagios 1.2 coredump issue

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.2 coredump issue

Post by Guest »

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to [email protected] for more info.

--2093892754-2142771467-1077134494=:29711
Content-Type: TEXT/PLAIN; charset=US-ASCII

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nagios 1.2 will coredump if it receives a cfg_dir option for a directory
does not exist. This occurs because it does not return(ERROR) when the
opendir returns NULL; instead continuing to attempt to readdir from that
pointer.

I've attached a patch that fixes this. It is already fixed in 2.0 cvs.

Thanks,
- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQFAM8Srl2ODWuqVSBMRAhRGAKCGjqzfnTg/4G2m0fEq3SWyu/4WKwCfeePs
fc5hkF8T+9C67V3mdJO5q3k=
=TAIW
-----END PGP SIGNATURE-----
--2093892754-2142771467-1077134494=:29711
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="xodtemplate.patch"
Content-Transfer-Encoding: BASE64
Content-ID:
Content-Description:
Content-Disposition: attachment; filename="xodtemplate.patch"

LS0tIHhvZHRlbXBsYXRlLmMJMjAwMy0xMS0yMiAxNzozNzoyMi4wMDAwMDAw
MDAgLTA4MDANCisrKyAvdG1wL3hvZHRlbXBsYXRlLmMJMjAwNC0wMi0xOCAx
MTo1ODoxNi4wMDAwMDAwMDAgLTA4MDANCkBAIC0yMzcsNyArMjM3LDcgQEAN
CiAJCXRlbXBfYnVmZmVyW3NpemVvZih0ZW1wX2J1ZmZlciktMV09J1x4MCc7
DQogCQl3cml0ZV90b19sb2dzX2FuZF9jb25zb2xlKHRlbXBfYnVmZmVyLE5T
TE9HX0NPTkZJR19FUlJPUixUUlVFKTsNCiAjZW5kaWYNCi0JCXJlc3VsdD1F
UlJPUjsNCisJCXJldHVybihFUlJPUik7DQogCSAgICAgICAgfQ0KIA0KIAkv
KiBwcm9jZXNzIGFsbCBmaWxlcyBpbiB0aGUgZGlyZWN0b3J5Li4uICovDQo=

--2093892754-2142771467-1077134494=:29711--





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