From 714701c890b5f03253c5ecdb7367c4258ce78715 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 22 Dec 2006 00:21:07 +0000 Subject: 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) --- coreutils/cat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coreutils') 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 @@ int bb_cat(char **argv) 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); -- cgit v1.1