From: Eric Bollengier Date: Sat, 20 Nov 2010 14:41:58 +0000 (+0100) Subject: Update bfile.offset when with plugin offset X-Git-Tag: Release-5.2.1~915 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=186308047f3661b57e21f1964c24ecccf6f4ea03;p=bacula%2Fbacula Update bfile.offset when with plugin offset --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 804019e9f2..f4e490538b 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -907,8 +907,10 @@ static ssize_t my_plugin_bread(BFILE *bfd, void *buf, size_t count) io.count = count; io.buf = (char *)buf; io.win32 = false; + io.offset = 0; io.lerror = 0; plug_func(plugin)->pluginIO(jcr->plugin_ctx, &io); + bfd->offset = io.offset; bfd->berrno = io.io_errno; if (io.win32) { errno = b_errno_win32;