Patch for NRPE

Andreas Ericsson ae at op5.se
Wed Jan 17 10:11:16 CET 2007


Aaron Segura wrote:
> 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);
> 
>  
> 
> I realize this is the "users" list.  Sorry if this is the wrong place to
> post it.
> 

There's no difference what so ever between these two code-snippets. Just 
renaming a variable doesn't really warrant a patch, imo. Did you see 
some compile-error that made this patch needed?

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
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
_______________________________________________
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