diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-10-24 22:44:52 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-11-16 00:47:36 +0000 |
commit | c8d570c2b31166d0792d64635674df5b2d543d12 (patch) | |
tree | 431c93bc97ccf107b3b82dab5f1491cc8fb8c4d1 /tests/tail-2 | |
parent | 0d1ba34494e5e5e21e205f2e86349afeb69ca84d (diff) | |
download | coreutils-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