aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/touch.c')
-rw-r--r--toys/posix/touch.c5
1 files changed, 1 insertions, 4 deletions
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++);
}
}