Missed one - 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 a346481d84a075c0cc245535a251e131863445b8 DIR parent d0b30d153d3b50be6952cfdf5613239ad46d576f HTML Author: sin <sin@2f30.org> Date: Wed, 21 Mar 2018 09:44:59 +0000 Missed one Diffstat: M dedup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -328,7 +328,8 @@ list(void) lseek(ifd, sizeof(enthdr), SEEK_SET); for (i = 0; i < enthdr.nents; i++) { struct ent ent; - read(ifd, &ent, sizeof(ent)); + + xread(ifd, &ent, sizeof(ent)); dump_md(ent.md, sizeof(ent.md)); putchar('\n'); lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR);