Commit Graph

7 Commits

Author SHA1 Message Date
sin
6f7f387352 Stop using EXIT_{SUCCESS,FAILURE} 2014-10-02 23:47:39 +01:00
sin
8d187be64a Replace fprintf(stderr, ...) calls with weprintf() 2014-06-30 22:44:48 +01:00
sin
86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
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