aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-05 23:10:27 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-05 23:10:27 +0000
commite3393513c5f18e726795103f54b5ffd52a371638 (patch)
tree2841757c7c8bb6c335376caecce0fd4646d48a56 /archival/tar.c
parent9f894f4062dbdd427895a9d12ca06e34791a4fb3 (diff)
downloadbusybox-w32-e3393513c5f18e726795103f54b5ffd52a371638.tar.gz
busybox-w32-e3393513c5f18e726795103f54b5ffd52a371638.tar.bz2
busybox-w32-e3393513c5f18e726795103f54b5ffd52a371638.zip
Be certain to not abort prematurely when reading stuff from pipes.
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c
index b6c2ef91e..93d5fbd45 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -526,7 +526,7 @@ static inline int writeTarFile(const char *tarName, const int verboseFlag,
526 while (1) { 526 while (1) {
527 char buf; 527 char buf;
528 528
529 int n = read(gzipStatusPipe[0], &buf, 1); 529 int n = bb_full_read(gzipStatusPipe[0], &buf, 1);
530 530
531 if (n == 0 && vfork_exec_errno != 0) { 531 if (n == 0 && vfork_exec_errno != 0) {
532 errno = vfork_exec_errno; 532 errno = vfork_exec_errno;