From: Kern Sibbald Date: Sun, 12 Dec 2010 09:28:18 +0000 (+0100) Subject: Fix end plugin stream index X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b0ba3912d275e1720dfc2e64db10a53f2cccea8;p=bacula%2Fbacula Fix end plugin stream index --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 28a61dcb95..defe88bf89 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -478,7 +478,7 @@ bool send_plugin_name(JCR *jcr, BSOCK *sd, bool start) stat = sd->fsend("%ld 1 %d %s%c", index, sp->portable, sp->cmd, 0); } else { /* Send end of data */ - stat = sd->fsend("0 0"); + stat = sd->fsend("%ld 0", jcr->JobFiles); } if (!stat) { Jmsg1(jcr, M_FATAL, 0, _("Network send error to SD. ERR=%s\n"),