iForbid 0 sized files - 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 c908de37593b46facbf6f015dddc4937e979f60d /scm/dedup/commit/c908de37593b46facbf6f015dddc4937e979f60d.gph bitreich.org 70 1parent e5bfb58f9fb886201ddae0b0892b39c45ad345ef /scm/dedup/commit/e5bfb58f9fb886201ddae0b0892b39c45ad345ef.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Wed, 21 Mar 2018 17:40:28 +0000 Err bitreich.org 70 i Err bitreich.org 70 iForbid 0 sized files Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 8 +++++--- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 5 insertions(+), 3 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -374,9 +374,11 @@ dedup(int fd) Err bitreich.org 70 i } Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i- /* Calculate hash and add this entry to the index */ Err bitreich.org 70 i- SHA256_Final(ent->md, &ctx); Err bitreich.org 70 i- append_ent(ent); Err bitreich.org 70 i+ if (ent->nblks > 0) { Err bitreich.org 70 i+ /* Calculate hash and add this entry to the index */ Err bitreich.org 70 i+ SHA256_Final(ent->md, &ctx); Err bitreich.org 70 i+ append_ent(ent); Err bitreich.org 70 i+ } Err bitreich.org 70 i free(ent); Err bitreich.org 70 i Err bitreich.org 70 i flush_cache(); Err bitreich.org 70 .