From: Eric Bollengier Date: Fri, 17 Feb 2012 14:21:15 +0000 (+0100) Subject: Fix old exchange-fd plugin Accurate checkFile code. X-Git-Tag: Release-5.2.6~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b78e58039200f88863f1409bea0a0cc56216445;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; }