Want more features on Pastebin? Sign Up, it's FREE!
Guest

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

By: a guest on Aug 27th, 2010  |  syntax: Diff  |  size: 0.71 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data