tUse appropriate mask when reading the hash algo - dedup - deduplicating backup program
HTML git clone git://git.z3bra.org/dedup.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0cc7e55a0b1f416fcac5ee581436aa131548c2b9
DIR parent 47ec558f694b05fc961322ec2733ff0cf7826413
HTML Author: sin <sin@2f30.org>
Date: Thu, 25 Apr 2019 14:02:00 +0100
Use appropriate mask when reading the hash algo
Diffstat:
M bstorage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/bstorage.c b/bstorage.c
t@@ -405,7 +405,7 @@ bsopen(struct bctx *bctx, char *path, int flags, int mode, struct bparam *bpar)
}
bpar->calgo = ctbl[calgo];
- halgo = (bhdr->flags >> CALGOSHIFT) & CALGOMASK;
+ halgo = (bhdr->flags >> HALGOSHIFT) & HALGOMASK;
if (halgo < 0 || halgo >= NHALGOS) {
free(sctx);
close(fd);