]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix old exchange-fd plugin Accurate checkFile code.
authorEric Bollengier <eric@baculasystems.com>
Fri, 17 Feb 2012 14:21:15 +0000 (15:21 +0100)
committerEric Bollengier <eric@baculasystems.com>
Fri, 17 Feb 2012 14:22:54 +0000 (15:22 +0100)
It now marks files as seen only when the plugin is used. Not perfect, but
probably sufficient.

bacula/src/win32/filed/plugins/exchange-fd.c

index a8a0dbaca86139d044bd82be97c55bc1f0891599..f5f80b412df6f54d1df6f4c33611dede216f90d3 100644 (file)
@@ -518,7 +518,9 @@ static bRC setFileAttributes(bpContext *ctx, struct restore_pkt *rp)
 static bRC checkFile(bpContext *ctx, char *fname)
 {
    exchange_fd_context_t *context = (exchange_fd_context_t *)ctx->pContext;
-   _DebugMessage(100, "checkFile\n");
-   /* previous files are always Seen */
-   return bRC_Seen;
+   if (context->plugin_active) {
+      _DebugMessage(100, "marked as seen %s\n", fname);
+      return bRC_Seen;
+   }
+   return bRC_OK;
 }