aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-30 17:57:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-30 17:57:03 +0000
commit3bba545a54addf59b63a003e7ada03fd8b29b5ba (patch)
tree948ce196f871abcf9410ca1521a3d2a5af6a3082 /archival/gzip.c
parentb5a122b6f9643fb052d31390e435397960289154 (diff)
downloadbusybox-w32-3bba545a54addf59b63a003e7ada03fd8b29b5ba.tar.gz
busybox-w32-3bba545a54addf59b63a003e7ada03fd8b29b5ba.tar.bz2
busybox-w32-3bba545a54addf59b63a003e7ada03fd8b29b5ba.zip
done a dozen of randconfig test. guess what? ALL failed...
these are resulting fixes
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index f4aea3f59..c0671c187 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1122,7 +1122,7 @@ static ulg deflate(void)
1122 * in the compressed file. 1122 * in the compressed file.
1123 */ 1123 */
1124 1124
1125 /* configuration */ 1125/* configuration */
1126 1126
1127typedef struct dirent dir_type; 1127typedef struct dirent dir_type;
1128 1128
@@ -1156,11 +1156,13 @@ int gzip_main(int argc, char **argv)
1156 //if (opt & 0x400) // -9 1156 //if (opt & 0x400) // -9
1157 //if (opt & 0x800) // -q 1157 //if (opt & 0x800) // -q
1158 //if (opt & 0x1000) // -v 1158 //if (opt & 0x1000) // -v
1159 if (ENABLE_GUNZIP && (opt & 0x2000)) { // -d 1159#if ENABLE_GUNZIP /* gunzip_main may not be visible... */
1160 if (opt & 0x2000) { // -d
1160 /* FIXME: getopt32 should not depend on optind */ 1161 /* FIXME: getopt32 should not depend on optind */
1161 optind = 1; 1162 optind = 1;
1162 return gunzip_main(argc, argv); 1163 return gunzip_main(argc, argv);
1163 } 1164 }
1165#endif
1164 1166
1165 foreground = signal(SIGINT, SIG_IGN) != SIG_IGN; 1167 foreground = signal(SIGINT, SIG_IGN) != SIG_IGN;
1166 if (foreground) { 1168 if (foreground) {