Print error for unknown hash - 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 bdea4855d307234f96b86bf1d53515faa3ca7248
DIR parent 367928d1742c6f7b12720e6c60a9292e6b708c7c
HTML 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
@@ -323,6 +323,8 @@ extract(char *id, int fd)
free(ent);
break;
}
+ if (i == enthdr.nents)
+ errx(1, "extract: unknown hash %s", id);
}
void