]> mj.ucw.cz Git - libucw.git/blobdiff - lib/buckettool.c
`buckettool -c' (cat) now separates buckets by an empty line.
[libucw.git] / lib / buckettool.c
index 2b4ff592f226c47fc93f91f6e4546d64712a63ad..76b8fc37c21f5586074490981ecee352eefbf23a 100644 (file)
@@ -201,6 +201,11 @@ insert(byte *arg)
        bputl(b, lizard_filled
 #if 0  //TEST error resilience: write wrong length
            +1
+#endif
+           );
+       bputl(b, adler32(lizard_buf.ptr, lizard_filled)
+#if 0  //TEST error resilience: write wrong checksum
+           +1
 #endif
            );
        uns want_len = lizard_filled * LIZARD_MAX_MULTIPLY + LIZARD_MAX_ADD;
@@ -249,6 +254,7 @@ cat(void)
       }
       else
        dump_parsed_bucket(out, &h, b);
+      bputc(out, '\n');
     }
   bclose(out);
   obuck_cleanup();