diff options
author | Eric Andersen | 2003-07-05 23:10:27 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-05 23:10:27 +0000 |
commit | e3393513c5f18e726795103f54b5ffd52a371638 (patch) | |
tree | 2841757c7c8bb6c335376caecce0fd4646d48a56 /archival/tar.c | |
parent | 9f894f4062dbdd427895a9d12ca06e34791a4fb3 (diff) | |
download | busybox-e3393513c5f18e726795103f54b5ffd52a371638.zip busybox-e3393513c5f18e726795103f54b5ffd52a371638.tar.gz |
Be certain to not abort prematurely when reading stuff from pipes.
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c index b6c2ef9..93d5fbd 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -526,7 +526,7 @@ static inline int writeTarFile(const char *tarName, const int verboseFlag, while (1) { char buf; - int n = read(gzipStatusPipe[0], &buf, 1); + int n = bb_full_read(gzipStatusPipe[0], &buf, 1); if (n == 0 && vfork_exec_errno != 0) { errno = vfork_exec_errno; |