tPrint error for unknown hash - 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 bdea4855d307234f96b86bf1d53515faa3ca7248
(DIR) parent 367928d1742c6f7b12720e6c60a9292e6b708c7c
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 16:10:12 +0000
Print error for unknown hash
Diffstat:
M dedup.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -323,6 +323,8 @@ extract(char *id, int fd)
free(ent);
break;
}
+ if (i == enthdr.nents)
+ errx(1, "extract: unknown hash %s", id);
}
void