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-7.0.0~1380 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=094418155c9ba8fff85824bb36e256b3972ed534;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;