dedup

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

commit 0cc7e55a0b1f416fcac5ee581436aa131548c2b9
parent 47ec558f694b05fc961322ec2733ff0cf7826413
Author: sin <sin@2f30.org>
Date:   Thu, 25 Apr 2019 14:02:00 +0100

Use appropriate mask when reading the hash algo

Diffstat:
Mbstorage.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bstorage.c b/bstorage.c @@ -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);