Kern,

The following patch fixes a regression introduced a while back (early 5.2.x 
maybe?) in the Exchange plugin. The Level and Since are set before we know that 
the plugin is active, so they need to be recorded either way.

James

diff --git a/bacula/src/win32/filed/plugins/exchange-fd.c 
b/bacula/src/win32/filed/plugins/exchange-fd.c
index f5f80b4..bbd1b9a 100644
--- a/bacula/src/win32/filed/plugins/exchange-fd.c
+++ b/bacula/src/win32/filed/plugins/exchange-fd.c
@@ -272,17 +272,13 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent 
*event, void *value)
       }
       break;
    case bEventLevel:
-      if (!context->plugin_active) {
-         break;
-      }
+      /* We don't know if the plugin is active here yet */
       intval = (intptr_t)value;
       _DebugMessage(100, "JobLevel=%c %d\n", intval, intval);
       context->job_level = intval;
       break;
    case bEventSince:
-      if (!context->plugin_active) {
-         break;
-      }
+      /* We don't know if the plugin is active here yet */
       intval = (intptr_t)value;
       _DebugMessage(100, "since=%d\n", intval);
       context->job_since = (time_t)value;


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to