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