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.
This commit is contained in:
Yorhel 2020-05-06 07:03:00 +02:00
parent 4a2def5223
commit 9a3727759c

View file

@ -84,7 +84,7 @@ static void hlink_check(struct dir *d) {
i=0; i=0;
if(i) { if(i) {
par->size = adds64(par->size, d->size); par->size = adds64(par->size, d->size);
par->asize = adds64(par->size, d->asize); par->asize = adds64(par->asize, d->asize);
} }
} }
} }