]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix bug in the Object protocol
authorEric Bollengier <eric@baculasystems.com>
Thu, 15 Oct 2020 09:23:21 +0000 (11:23 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
The ObjectSize reported was not correct from time to time.

bacula/src/filed/backup.c

index 81126dadda3ccc41aaade6ec081acf71baf8ce36..ece18edeb6a580885d09cc3ebd375634cf581b06 100644 (file)
@@ -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;