diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-13 06:43:03 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-13 06:43:03 +0000 |
commit | 6b6a65414f52e9135a5e3168124b14fcd961020a (patch) | |
tree | c00537b1d8474c837312818bc48f6b822e8fb4d1 /libbb | |
parent | 7baffca714b6264cd5cfd05c314a59aeea938f8f (diff) | |
download | busybox-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 'libbb')
-rw-r--r-- | libbb/unarchive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index 5c5bb49f3..80dddb226 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c | |||
@@ -568,6 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream, | |||
568 | /* open the debian package to be worked on */ | 568 | /* open the debian package to be worked on */ |
569 | deb_stream = wfopen(package_filename, "r"); | 569 | deb_stream = wfopen(package_filename, "r"); |
570 | 570 | ||
571 | /* set the buffer size */ | ||
572 | setvbuf(deb_stream, NULL, _IOFBF, 0x8000); | ||
573 | |||
571 | /* check ar magic */ | 574 | /* check ar magic */ |
572 | fread(ar_magic, 1, 8, deb_stream); | 575 | fread(ar_magic, 1, 8, deb_stream); |
573 | if (strncmp(ar_magic,"!<arch>",7) != 0) { | 576 | if (strncmp(ar_magic,"!<arch>",7) != 0) { |