diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-28 07:31:37 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-28 07:31:37 +0000 |
commit | 9233959940992f5b81fcf1ed63c4606d845bce8b (patch) | |
tree | a650e5a3c3c32c1f2288555507cf7fb649d3443d /tar.c | |
parent | 018e9e6799ec34d2793c7b16f52e39cd9206861b (diff) | |
download | busybox-w32-9233959940992f5b81fcf1ed63c4606d845bce8b.tar.gz busybox-w32-9233959940992f5b81fcf1ed63c4606d845bce8b.tar.bz2 busybox-w32-9233959940992f5b81fcf1ed63c4606d845bce8b.zip |
Remove tar_unzip_init() not needed any more, uses gz_open instead
Diffstat (limited to '')
-rw-r--r-- | tar.c | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -149,43 +149,6 @@ static int writeTarFile(const char* tarName, int verboseFlag, char **argv, | |||
149 | char** excludeList); | 149 | char** excludeList); |
150 | #endif | 150 | #endif |
151 | 151 | ||
152 | #ifdef BB_FEATURE_TAR_GZIP | ||
153 | /* Signal handler for when child gzip process dies... */ | ||
154 | static void child_died() | ||
155 | { | ||
156 | fflush(stdout); | ||
157 | fflush(stderr); | ||
158 | exit(EXIT_FAILURE); | ||
159 | } | ||
160 | |||
161 | extern int tar_unzip_init(int tarFd) | ||
162 | { | ||
163 | int child_pid; | ||
164 | static int unzip_pipe[2]; | ||
165 | /* Cope if child dies... Otherwise we block forever in read()... */ | ||
166 | signal(SIGCHLD, child_died); | ||
167 | |||
168 | if (pipe(unzip_pipe)!=0) | ||
169 | error_msg_and_die("pipe error"); | ||
170 | |||
171 | if ( (child_pid = fork()) == -1) | ||
172 | error_msg_and_die("fork failure"); | ||
173 | |||
174 | if (child_pid==0) { | ||
175 | /* child process */ | ||
176 | close(unzip_pipe[0]); | ||
177 | // gunzip_init(); | ||
178 | unzip(tarFd, unzip_pipe[1]); | ||
179 | exit(EXIT_SUCCESS); | ||
180 | } | ||
181 | else { | ||
182 | /* return fd of uncompressed data to parent process */ | ||
183 | close(unzip_pipe[1]); | ||
184 | return(unzip_pipe[0]); | ||
185 | } | ||
186 | } | ||
187 | #endif | ||
188 | |||
189 | #if defined BB_FEATURE_TAR_EXCLUDE | 152 | #if defined BB_FEATURE_TAR_EXCLUDE |
190 | static struct option longopts[] = { | 153 | static struct option longopts[] = { |
191 | { "exclude", 1, NULL, 'e' }, | 154 | { "exclude", 1, NULL, 'e' }, |