aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-13 06:43:03 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-13 06:43:03 +0000
commit6b6a65414f52e9135a5e3168124b14fcd961020a (patch)
treec00537b1d8474c837312818bc48f6b822e8fb4d1 /tar.c
parent7baffca714b6264cd5cfd05c314a59aeea938f8f (diff)
downloadbusybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.tar.gz
busybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.tar.bz2
busybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.zip
Move setvbuf calls from gz_open() to calling functions, setvbuf is only supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
git-svn-id: svn://busybox.net/trunk/busybox@3087 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tar.c b/tar.c
index 31443ee22..cf65798ff 100644
--- a/tar.c
+++ b/tar.c
@@ -284,6 +284,10 @@ extern int tar_main(int argc, char **argv)
284 /* unzip tarFd in a seperate process */ 284 /* unzip tarFd in a seperate process */
285 if (unzipFlag == TRUE) { 285 if (unzipFlag == TRUE) {
286 comp_file = fdopen(tarFd, "r"); 286 comp_file = fdopen(tarFd, "r");
287
288 /* set the buffer size */
289 setvbuf(comp_file, NULL, _IOFBF, 0x8000);
290
287 if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) { 291 if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) {
288 error_msg_and_die("Couldnt unzip file"); 292 error_msg_and_die("Couldnt unzip file");
289 } 293 }