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/posix/touch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toys/posix/touch.c') diff --git a/toys/posix/touch.c b/toys/posix/touch.c index e350e754..76884be2 100644 --- a/toys/posix/touch.c +++ b/toys/posix/touch.c @@ -116,9 +116,6 @@ void touch_main(void) if ((!flag || !fetch(*ss, tv, flag)) && !utimes(*ss, tv)) ss++; else if (toys.optflags & FLAG_c) ss++; else if (-1 != (fd = open(*ss, O_CREAT, 0666))) close(fd); - else { - perror_msg("'%s'", *ss++); - toys.exitval = 1; - } + else perror_msg("'%s'", *ss++); } } -- cgit v1.2.3