From 662a267c9b52f256b027d0f176a846b1d973ab99 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 2 Jan 2013 02:00:35 -0600 Subject: Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to. --- toys/other/truncate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toys/other/truncate.c') diff --git a/toys/other/truncate.c b/toys/other/truncate.c index 5ed9f61b..123ae553 100644 --- a/toys/other/truncate.c +++ b/toys/other/truncate.c @@ -26,10 +26,7 @@ GLOBALS( static void do_truncate(int fd, char *name) { if (fd<0) return; - if (ftruncate(fd, TT.size)) { - perror_msg("failed to set '%s' to '%ld'", name, TT.size); - toys.exitval = EXIT_FAILURE; - } + if (ftruncate(fd, TT.size)) perror_msg("'%s' to '%ld'", name, TT.size); } void truncate_main(void) -- cgit v1.2.3