Advertisement
Guest User

Patch for Nagios' macro.c so custom object variables aren't cleansed

a guest
Aug 27th, 2010
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  1. cvs diff: Diffing .
  2. Index: macros.c
  3. ===================================================================
  4. RCS file: /cvsroot/nagios/nagios/common/macros.c,v
  5. retrieving revision 1.37
  6. diff -u -r1.37 macros.c
  7. --- macros.c    6 Aug 2010 11:40:46 -0000   1.37
  8. +++ macros.c    27 Aug 2010 12:47:40 -0000
  9. @@ -615,16 +615,10 @@
  10.         }
  11.  
  12.     /***** CUSTOM VARIABLE MACROS *****/
  13. -   else if(macro_name[0]=='_'){
  14. -
  15. +   else if(macro_name[0]=='_')
  16.         /* get the macro value */
  17.         result=grab_custom_macro_value(macro_name,arg[0],arg[1],output);
  18.  
  19. -       /* custom variable values get cleaned */
  20. -       if(result==OK)
  21. -           *clean_options|=(STRIP_ILLEGAL_MACRO_CHARS|ESCAPE_MACRO_CHARS);
  22. -       }
  23. -
  24.     /* no macro matched... */
  25.     else{
  26.  #ifdef NSCORE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement