[Nagios-devel] [PATCH] drunken config.cgi
Posted: Sat Apr 12, 2008 7:59 am
This is a multi-part message in MIME format.
--------------040406010902050401020603
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi List,
some nice guys from www.nagios-portal.org recognized a drunken
config.cgi (it displays everything twice).
Attached patch should solve the problem.
The "read_all_object_configuration_data()" is called twice, one time on
line 126 including error detection and another time on line 142 without
error detection.
So I decide to drop 142, hope that's ok.
Regards,
Hendrik
--------------040406010902050401020603
Content-Type: text/plain;
name="config.c.patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="config.c.patch.txt"
LS0tIG5hZ2lvcy5vcmlnL2NnaS9jb25maWcuYyAgICAyMDA4LTA0LTEyIDE3OjE3OjU5LjAw
MDAwMDAwMCArMDIwMAorKysgbmFnaW9zL2NnaS9jb25maWcuYyAyMDA4LTA0LTEyIDE3OjUy
OjM0LjAwMDAwMDAwMCArMDIwMApAQCAtMTM5LDkgKzEzOSw2IEBACiAgICAgICAgLyogZ2V0
IGF1dGhlbnRpY2F0aW9uIGluZm9ybWF0aW9uICovCiAgICAgICAgZ2V0X2F1dGhlbnRpY2F0
aW9uX2luZm9ybWF0aW9uKCZjdXJyZW50X2F1dGhkYXRhKTsKIAotICAgICAgIC8qIHJlYWQg
YWxsIG9iamVjdCBkZWZpbml0aW9ucy4uLiAqLwotICAgICAgIHJlYWRfYWxsX29iamVjdF9j
b25maWd1cmF0aW9uX2RhdGEobWFpbl9jb25maWdfZmlsZSxSRUFEX0FMTF9PQkpFQ1RfREFU
QSk7Ci0KICAgICAgICAvKiBiZWdpbiB0b3AgdGFibGUgKi8KICAgICAgICBwcmludGYoIjx0
YWJsZSBib3JkZXI9MCB3aWR0aD0xMDAlJT5cbiIpOwogICAgICAgIHByaW50ZigiPHRyPlxu
Iik7Cg==
--------------040406010902050401020603--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
--------------040406010902050401020603
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi List,
some nice guys from www.nagios-portal.org recognized a drunken
config.cgi (it displays everything twice).
Attached patch should solve the problem.
The "read_all_object_configuration_data()" is called twice, one time on
line 126 including error detection and another time on line 142 without
error detection.
So I decide to drop 142, hope that's ok.
Regards,
Hendrik
--------------040406010902050401020603
Content-Type: text/plain;
name="config.c.patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="config.c.patch.txt"
LS0tIG5hZ2lvcy5vcmlnL2NnaS9jb25maWcuYyAgICAyMDA4LTA0LTEyIDE3OjE3OjU5LjAw
MDAwMDAwMCArMDIwMAorKysgbmFnaW9zL2NnaS9jb25maWcuYyAyMDA4LTA0LTEyIDE3OjUy
OjM0LjAwMDAwMDAwMCArMDIwMApAQCAtMTM5LDkgKzEzOSw2IEBACiAgICAgICAgLyogZ2V0
IGF1dGhlbnRpY2F0aW9uIGluZm9ybWF0aW9uICovCiAgICAgICAgZ2V0X2F1dGhlbnRpY2F0
aW9uX2luZm9ybWF0aW9uKCZjdXJyZW50X2F1dGhkYXRhKTsKIAotICAgICAgIC8qIHJlYWQg
YWxsIG9iamVjdCBkZWZpbml0aW9ucy4uLiAqLwotICAgICAgIHJlYWRfYWxsX29iamVjdF9j
b25maWd1cmF0aW9uX2RhdGEobWFpbl9jb25maWdfZmlsZSxSRUFEX0FMTF9PQkpFQ1RfREFU
QSk7Ci0KICAgICAgICAvKiBiZWdpbiB0b3AgdGFibGUgKi8KICAgICAgICBwcmludGYoIjx0
YWJsZSBib3JkZXI9MCB3aWR0aD0xMDAlJT5cbiIpOwogICAgICAgIHByaW50ZigiPHRyPlxu
Iik7Cg==
--------------040406010902050401020603--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]