[Nagios-devel] [patch] fix format errors

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] [patch] fix format errors

Post by Guest »

This is a cryptographically signed message in MIME format.

--------------ms040902010703080302070609
Content-Type: multipart/mixed; boundary="------------010006020405000806070409"

This is a multi-part message in MIME format.
--------------010006020405000806070409
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello.

Here is a patch fixing some format errors in nagios code. I tried to
register to the mantis bug tracker to attach the patch to a bug report,
but I never received the account creation message.
--=20
BOFH excuse #377:

Someone hooked the twisted pair wires into the answering machine.

--------------010006020405000806070409
Content-Type: text/plain;
name="nagios-3.2.2-fix-format-errors.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nagios-3.2.2-fix-format-errors.patch"

diff -Naur -x '*.orig' nagios-3.2.2/base/sehandlers.c nagios-3.2.2-fix-fo=
rmat-errors//base/sehandlers.c
--- nagios-3.2.2/base/sehandlers.c 2010-08-28 15:50:40.000000000 +0200
+++ nagios-3.2.2-fix-format-errors//base/sehandlers.c 2010-09-05 14:19:22=
=2E000000000 +0200
@@ -296,7 +296,7 @@
if(log_event_handlers=3D=3DTRUE){
asprintf(&raw_logentry,"GLOBAL SERVICE EVENT HANDLER: %s;%s;$SERVICEST=
ATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n",svc->host_name,svc->descri=
ption,global_service_event_handler);
process_macros(raw_logentry,&processed_logentry,macro_options);
- logit(NSLOG_EVENT_HANDLER,FALSE,processed_logentry);
+ logit(NSLOG_EVENT_HANDLER,FALSE,"%s",processed_logentry);
}
=20
#ifdef USE_EVENT_BROKER
@@ -396,7 +396,7 @@
if(log_event_handlers=3D=3DTRUE){
asprintf(&raw_logentry,"SERVICE EVENT HANDLER: %s;%s;$SERVICESTATE$;$S=
ERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n",svc->host_name,svc->description,s=
vc->event_handler);
process_macros(raw_logentry,&processed_logentry,macro_options);
- logit(NSLOG_EVENT_HANDLER,FALSE,processed_logentry);
+ logit(NSLOG_EVENT_HANDLER,FALSE,"%s",processed_logentry);
}
=20
#ifdef USE_EVENT_BROKER
@@ -542,7 +542,7 @@
if(log_event_handlers=3D=3DTRUE){
asprintf(&raw_logentry,"GLOBAL HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOS=
TSTATETYPE$;$HOSTATTEMPT$;%s\n",hst->name,global_host_event_handler);
process_macros(raw_logentry,&processed_logentry,macro_options);
- logit(NSLOG_EVENT_HANDLER,FALSE,processed_logentry);
+ logit(NSLOG_EVENT_HANDLER,FALSE,"%s",processed_logentry);
}
=20
#ifdef USE_EVENT_BROKER
@@ -640,7 +640,7 @@
if(log_event_handlers=3D=3DTRUE){
asprintf(&raw_logentry,"HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATET=
YPE$;$HOSTATTEMPT$;%s\n",hst->name,hst->event_handler);
process_macros(raw_logentry,&processed_logentry,macro_options);
- logit(NSLOG_EVENT_HANDLER,FALSE,processed_logentry);
+ logit(NSLOG_EVENT_HANDLER,FALSE,"%s",processed_logentry);
}
=20
#ifdef USE_EVENT_BROKER

--------------010006020405000806070409--

--------------ms040902010703080302070609
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIINqzCC
BH0wggJloAMCAQICAQAwDQYJKoZIhvcNAQEEBQAwLTELMAkGA1UEBhMCRlIxDjAMBgNVBAoT
BUlOUklBMQ4wDAYDVQQDEwVJTlJJQTAeFw0wNjAzMzAxMDIxNTlaFw0xNjAzMjcxMDIxNTla
MDIxCzAJBgNVBAYTAkZSMQ4wDAYDVQQKEwVJTlJJQTETMBEGA1UEAxMKSU5SSUEtUGx1czCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOCBPZyMS1mITxNxYIRw0c4FAI3zw15O
0BqhxgbXECCccrqIe/PzJND/BxqoqdgJ/3KXv1zHpP7Idkw/bhowNM+IBcypWBidb2yE31lM
l35zWPFZZ3ROW21tDaZmxdUHt8i6+CHVmAb8UwDo82T8ooLq5PxoiucfqoNcROEvHdVC5pSO
1JviIgDW2DeJ+ehThv0CA34Ty+p5UxBzjFIaxqzBjBmS67hOJBFc0+pFQ/yo3IqlLqQRsahV
2zdkZJXWMrcSqJ6qXJb8Pq1u6dJEORG2kCtyHtEvwCYIDI0Svpzx6qpYIz/Zb0cBnzQKkOiv
0cKD3jFZpEDYD+fxBlcon+sCAwEAAaOBojCBnzAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW
BBSRwBfGOtpWuDIAE4lLfOqYSlAUVjBdBgNVHSMEVjBUgBRRal/p94YS+kPyOIbAoEzX3GCf
GaExpC8wLTELMAkGA1UEBhMCRlIxDjAMBgNVBAoTBUlOUklBMQ4wDAYDVQQDEwVJTlJJQYIJ
AJQVNOcGFuJ9MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQQFAAOCAgEAIr4pjp3FlWpe
3cSwGK/21enF0ALKL6leEoNpAmW3

...[email truncated]...


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