From: Eric Bollengier Date: Thu, 15 Oct 2020 09:23:21 +0000 (+0200) Subject: Fix bug in the Object protocol X-Git-Tag: Release-11.3.2~990 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaff075bd4e9ff3894a3d040d3c8ebf349d943c4;p=thirdparty%2Fbacula.git Fix bug in the Object protocol The ObjectSize reported was not correct from time to time. --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 81126dadd..ece18edeb 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -1093,11 +1093,10 @@ bool encode_and_send_attributes(bctx_t &bctx) bash_spaces(object_source.c_str()); pm_strcpy(object_uuid, ff_pkt->plugin_obj.object_uuid); bash_spaces(object_uuid.c_str()); - - sd->msglen = Mmsg(sd->msg, "%s %s %s %s %s %s %s %llu", + sd->msglen = Mmsg(sd->msg, "%s %s %s %s %s %s %s %llu%c", path.c_str(), plugin_name.c_str(), object_category.c_str(), object_type.c_str(), object_name.c_str(), object_source.c_str(), object_uuid.c_str(), - ff_pkt->plugin_obj.object_size); + ff_pkt->plugin_obj.object_size, 0); stat = sd->send(); break;