From: Eric Bollengier Date: Fri, 17 Feb 2012 14:21:15 +0000 (+0100) Subject: Fix old exchange-fd plugin Accurate checkFile code. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1aad7944f45f9ced27f7b127a1d152c3f00cddb3;p=bacula%2Fbacula Fix old exchange-fd plugin Accurate checkFile code. It now marks files as seen only when the plugin is used. Not perfect, but probably sufficient. --- diff --git a/bacula/src/win32/filed/plugins/exchange-fd.c b/bacula/src/win32/filed/plugins/exchange-fd.c index a8a0dbaca8..f5f80b412d 100644 --- a/bacula/src/win32/filed/plugins/exchange-fd.c +++ b/bacula/src/win32/filed/plugins/exchange-fd.c @@ -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; }