sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.86k stars 128 forks source link

Fix max sizes on x86, part of the fix for #522 #523

Closed sbraz closed 1 year ago

sbraz commented 2 years ago

strtoull returns ULLONG_MAX, not ULONG_MAX.

sbraz commented 2 years ago

Actually please don't merge this yet, --size 0-18446744073709551615.1 doesn't trigger an error.

sbraz commented 2 years ago

I don't really know why that fraction is supposed to fail here: https://github.com/sahib/rmlint/blob/427791ca7c9ffa66b2c666b6b01874c5e165fae6/lib/cmdline.c#L387

I'll leave this PR in its current state, as an incomplete fix for #522.

cebtenzzre commented 1 year ago

Fixed in 4043c79992d251442681b72260b5425bd00e9b82.