From 186308047f3661b57e21f1964c24ecccf6f4ea03 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 20 Nov 2010 15:41:58 +0100 Subject: [PATCH] Update bfile.offset when with plugin offset --- bacula/src/filed/fd_plugins.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5