summaryrefslogtreecommitdiff
path: root/tests/tail-2
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-10-24 22:44:52 +0100
committerPádraig Brady <P@draigBrady.com>2010-11-16 00:47:36 +0000
commitc8d570c2b31166d0792d64635674df5b2d543d12 (patch)
tree431c93bc97ccf107b3b82dab5f1491cc8fb8c4d1 /tests/tail-2
parent0d1ba34494e5e5e21e205f2e86349afeb69ca84d (diff)
downloadcoreutils-c8d570c2b31166d0792d64635674df5b2d543d12.tar.xz
truncate: fix a very unlikely case for undiagnosed errors
src/truncate.c (main): Use a bool to store if an error occurred, rather than an int, to protect against overflow. (do_ftruncate): Likewise. Also change 0/false to mean failure rather than success.
Diffstat (limited to 'tests/tail-2')
0 files changed, 0 insertions, 0 deletions