Fix hardlink counting off-by-one in binary export

This commit is contained in:
Yorhel 2024-08-06 14:51:42 +02:00
parent 22dca22450
commit ad166de925

View file

@ -305,7 +305,7 @@ pub const Dir = struct {
const v = kv.value_ptr;
d.size +|= v.size;
d.blocks +|= v.blocks;
if (v.nlink > 1 and v.nfound <= v.nlink) {
if (v.nlink > 1 and v.nfound < v.nlink) {
d.shared_size +|= v.size;
d.shared_blocks +|= v.blocks;
}