diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-22 00:21:07 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-22 00:21:07 +0000 |
| commit | 2ae5f6f7b023c362db59c8ecf16c416bf1f77a75 (patch) | |
| tree | 7ddaf73cf2deda0f357b21802dab4d42798dd778 /coreutils | |
| parent | d8c6309724259aa293ac194650a154c4dbc154db (diff) | |
| download | busybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.tar.gz busybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.tar.bz2 busybox-w32-2ae5f6f7b023c362db59c8ecf16c416bf1f77a75.zip | |
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)
git-svn-id: svn://busybox.net/trunk/busybox@17038 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/cat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c index d828b86ec..2b7c6035f 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
| @@ -25,9 +25,8 @@ int bb_cat(char **argv) | |||
| 25 | if (f) { | 25 | if (f) { |
| 26 | off_t r = bb_copyfd_eof(fileno(f), STDOUT_FILENO); | 26 | off_t r = bb_copyfd_eof(fileno(f), STDOUT_FILENO); |
| 27 | fclose_if_not_stdin(f); | 27 | fclose_if_not_stdin(f); |
| 28 | if (r >= 0) { | 28 | if (r >= 0) |
| 29 | continue; | 29 | continue; |
| 30 | } | ||
| 31 | } | 30 | } |
| 32 | retval = EXIT_FAILURE; | 31 | retval = EXIT_FAILURE; |
| 33 | } while (*++argv); | 32 | } while (*++argv); |
