commit | 714701c890b5f03253c5ecdb7367c4258ce78715 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Fri Dec 22 00:21:07 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Fri Dec 22 00:21:07 2006 +0000 |
tree | 7ddaf73cf2deda0f357b21802dab4d42798dd778 | |
parent | 0a8a7741795880201bcf78231d1eab0e2538bb0b [diff] [blame] |
tar et al: die if bb_copyfd_size copies less than asked for. (we have bb_copyfd_exact_size now for that kind of usage)
diff --git a/coreutils/cat.c b/coreutils/cat.c index d828b86..2b7c603 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c
@@ -25,9 +25,8 @@ if (f) { off_t r = bb_copyfd_eof(fileno(f), STDOUT_FILENO); fclose_if_not_stdin(f); - if (r >= 0) { + if (r >= 0) continue; - } } retval = EXIT_FAILURE; } while (*++argv);