FW: Patch for NRPE
Aaron Segura
Aaron.Segura at cabelas.com
Mon Jan 15 18:51:15 CET 2007
Attached.
-----Original Message-----
From: Antoine Musso [mailto:antoine.musso at laposte.fr]
Sent: Monday, January 15, 2007 10:33 AM
To: Aaron Segura
Subject: Re: [Nagios-users] Patch for NRPE
Aaron Segura a écrit :
> While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG
> option today I think I found a small error in the code and have included
> a patch to fix it.
>
> This is for nrpe.c
>
> 1053,1056c1053,1056
> < fp=fopen("/tmp/packet","w");
> < if(fp){
> < fwrite(&receive_packet,1,sizeof(receive_packet),fp);
> < fclose(fp);
> ---
>> errfp=fopen("/tmp/packet","w");
>> if(errfp){
>> fwrite(&receive_packet,1,sizeof(receive_packet),errfp);
>> fclose(errfp);
Hello Aaron,
You want to post an 'unified' diff. It can be done using the '-u' switch:
$ diff -u nrpe.c-back nrpe.c
--
Antoine MUSSO
DISIT/PROD/QFO/OUT
mailto:antoine.musso at laposte.fr
tél. 02 40 12 73 62
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nrpe.patch
Type: application/octet-stream
Size: 527 bytes
Desc: nrpe.patch
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070115/f198d4d5/attachment.obj>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list