Dump list output to stdout not stderr - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit ccaebcb0909f2585ee339cce7f70cfbc4849b186 DIR parent 520be8af4316a964af8002485578be8e9974ca2c HTML Author: sin <sin@2f30.org> Date: Wed, 21 Mar 2018 14:42:22 +0000 Dump list output to stdout not stderr Diffstat: M dedup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -482,10 +482,13 @@ list(void) lseek(ifd, sizeof(enthdr), SEEK_SET); for (i = 0; i < enthdr.nents; i++) { struct ent ent; + size_t i; if (xread(ifd, &ent, sizeof(ent)) == 0) errx(1, "unexpected EOF"); - dump_md(ent.md, sizeof(ent.md)); + + for (i = 0; i < sizeof(ent.md); i++) + printf("%02x", ent.md[i]); putchar('\n'); lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR); }