aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-11 10:56:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-11 10:56:37 +0000
commita4688bf55de75db06af9d816ac7e6c7b7b19964a (patch)
tree55638ec5c9789159f25822f692c879c8fec5ff42 /archival
parentbe644a81e91bcfacfc8948a39e5184fa6cba663e (diff)
downloadbusybox-w32-a4688bf55de75db06af9d816ac7e6c7b7b19964a.tar.gz
busybox-w32-a4688bf55de75db06af9d816ac7e6c7b7b19964a.tar.bz2
busybox-w32-a4688bf55de75db06af9d816ac7e6c7b7b19964a.zip
fix buglets found by randomconfig run
Diffstat (limited to 'archival')
-rw-r--r--archival/bbunzip.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index b922fd373..91dd5404c 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -1,7 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Modified for busybox by Glenn McGrath <bug1@iinet.net.au> 3 * Common code for gunzip-like applets
4 * Added support output to stdout by Thomas Lundquist <thomasez@zelow.no>
5 * 4 *
6 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
7 */ 6 */
@@ -127,6 +126,8 @@ int unpack(char **argv,
127 return exitcode; 126 return exitcode;
128} 127}
129 128
129#if ENABLE_BUNZIP2 || ENABLE_UNLZMA || ENABLE_UNCOMPRESS
130
130static 131static
131char* make_new_name_generic(char *filename, const char *expected_ext) 132char* make_new_name_generic(char *filename, const char *expected_ext)
132{ 133{
@@ -140,6 +141,17 @@ char* make_new_name_generic(char *filename, const char *expected_ext)
140 return filename; 141 return filename;
141} 142}
142 143
144#endif
145
146
147/* vi: set sw=4 ts=4: */
148/*
149 * Modified for busybox by Glenn McGrath <bug1@iinet.net.au>
150 * Added support output to stdout by Thomas Lundquist <thomasez@zelow.no>
151 *
152 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
153 */
154
143#if ENABLE_BUNZIP2 155#if ENABLE_BUNZIP2
144 156
145static 157static