iUse appropriate mask when reading the hash algo - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 0cc7e55a0b1f416fcac5ee581436aa131548c2b9 /scm/dedup/commit/0cc7e55a0b1f416fcac5ee581436aa131548c2b9.gph bitreich.org 70 1parent 47ec558f694b05fc961322ec2733ff0cf7826413 /scm/dedup/commit/47ec558f694b05fc961322ec2733ff0cf7826413.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Thu, 25 Apr 2019 14:02:00 +0100 Err bitreich.org 70 i Err bitreich.org 70 iUse appropriate mask when reading the hash algo Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M bstorage.c | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/bstorage.c b/bstorage.c /scm/dedup/file/bstorage.c.gph bitreich.org 70 i@@ -405,7 +405,7 @@ bsopen(struct bctx *bctx, char *path, int flags, int mode, struct bparam *bpar) Err bitreich.org 70 i } Err bitreich.org 70 i bpar->calgo = ctbl[calgo]; Err bitreich.org 70 i Err bitreich.org 70 i- halgo = (bhdr->flags >> CALGOSHIFT) & CALGOMASK; Err bitreich.org 70 i+ halgo = (bhdr->flags >> HALGOSHIFT) & HALGOMASK; Err bitreich.org 70 i if (halgo < 0 || halgo >= NHALGOS) { Err bitreich.org 70 i free(sctx); Err bitreich.org 70 i close(fd); Err bitreich.org 70 .