Commit Graph

4 Commits

Author SHA1 Message Date
sin
a707baffd6 Initialize size to 0 to avoid gcc warnings
We can never get to a call to ftruncate() without specifying size
so the compiler warning is bogus.
2014-04-14 14:53:20 +01:00
Hiltjo Posthuma
780fd613eb truncate: match coreutils truncate behaviour
improvements:
- when truncate on a file failed proceed with the rest.
- when truncate on a file failed exit with EXIT_FAILURE.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:09 +00:00
s-p-k
e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin
f885062b22 Add truncate(1) 2013-08-16 11:34:52 +01:00