tMissed one - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a346481d84a075c0cc245535a251e131863445b8
(DIR) parent d0b30d153d3b50be6952cfdf5613239ad46d576f
(HTM) 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
t@@ -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);