1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 02:01:05 +00:00
uutils-coreutils/tests
Jeffrey Finkelstein 0454d3b243 truncate: prevent underflow when reducing size
Prevent usize underflow when reducing the size of a file by more than
its current size. For example, if `f` is a file with 3 bytes, then

    truncate -s-5 f

will now set the size of the file to 0 instead of causing a panic.
2022-01-28 22:44:07 -05:00
..
benches/factor deps: update rand to 0.8 2022-01-24 20:40:29 -05:00
by-util truncate: prevent underflow when reducing size 2022-01-28 22:44:07 -05:00
common tail: don't error when following non-UTF-8 data 2022-01-24 21:32:52 -05:00
fixtures tests/join: test default check order behaviour 2022-01-22 17:51:29 -05:00
test_util_name.rs tests: silence clippy warnings for unused_imports 2021-10-10 00:52:18 +02:00
tests.rs tests ~ use build.rs build list of test_UTIL module files 2020-06-02 12:17:30 -05:00