dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | LICENSE

commit a346481d84a075c0cc245535a251e131863445b8
parent d0b30d153d3b50be6952cfdf5613239ad46d576f
Author: sin <sin@2f30.org>
Date:   Wed, 21 Mar 2018 09:44:59 +0000

Missed one

Diffstat:
dedup.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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);