diff options
author | Yorhel <git@yorhel.nl> | 2020-05-06 07:03:00 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-05-06 07:04:36 +0200 |
commit | 9a3727759c722dfb30ed6bcc5ebdcadf02878a2a (patch) | |
tree | c8208f2d08173a90f9dd50f682b1ffd9e9777e0d | |
parent | 4a2def5223b7001f59acf5a0e958f9d2964dbf65 (diff) |
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.
-rw-r--r-- | src/dir_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } } |