aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/cat.c')
-rw-r--r--toys/posix/cat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/toys/posix/cat.c b/toys/posix/cat.c
index 431c7751..78881c4c 100644
--- a/toys/posix/cat.c
+++ b/toys/posix/cat.c
@@ -25,10 +25,7 @@ static void do_cat(int fd, char *name)
for (;;) {
len = read(fd, toybuf, size);
- if (len<0) {
- perror_msg("%s",name);
- toys.exitval = EXIT_FAILURE;
- }
+ if (len<0) perror_msg("%s",name);
if (len<1) break;
xwrite(1, toybuf, len);
}