From 9a3727759c722dfb30ed6bcc5ebdcadf02878a2a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 6 May 2020 07:03:00 +0200 Subject: [PATCH] Fix calculating of directory apparent sizes with hard links Silly one-character typo that causes directory apparent sizes to be very off in some scenarios. Reported & patched by Andrew Neitsch. --- src/dir_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dir_mem.c b/src/dir_mem.c index 1708421..d1dce8d 100644 --- a/src/dir_mem.c +++ b/src/dir_mem.c @@ -84,7 +84,7 @@ static void hlink_check(struct dir *d) { i=0; if(i) { par->size = adds64(par->size, d->size); - par->asize = adds64(par->size, d->asize); + par->asize = adds64(par->asize, d->asize); } } }