freebsd-src/usr.bin/truncate
Jilles Tjoelker c385f9c298 MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.
The change to expand_number (r204654) broke detection of too large sizes and
relative sizes ('+'/'-').

Also add some tests.

The usr.bin/truncate/Makefile is slightly different in the MFC because
src.opts.mk does not exist in stable/10.

PR:		190735
Submitted by:	Kirk Russell
2014-12-07 22:30:54 +00:00
..
tests MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests. 2014-12-07 22:30:54 +00:00
Makefile MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests. 2014-12-07 22:30:54 +00:00
truncate.1 The -r option can also cause the files to be extended (not 2006-12-19 11:20:34 +00:00
truncate.c MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests. 2014-12-07 22:30:54 +00:00