2006-07-02 19:47:05 +00:00
|
|
|
/* vi: set sw=4 ts=4: */
|
2002-11-05 02:56:57 +00:00
|
|
|
/*
|
2006-07-12 07:56:04 +00:00
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2002-11-05 02:56:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2003-11-05 04:55:58 +00:00
|
|
|
#include <sys/wait.h>
|
2002-11-05 02:56:57 +00:00
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "libbb.h"
|
|
|
|
#include "unarchive.h"
|
|
|
|
|
2006-03-06 20:47:33 +00:00
|
|
|
char get_header_tar_bz2(archive_handle_t *archive_handle)
|
2002-11-05 02:56:57 +00:00
|
|
|
{
|
2003-11-05 04:55:58 +00:00
|
|
|
/* Cant lseek over pipe's */
|
2002-11-13 00:24:20 +00:00
|
|
|
archive_handle->seek = seek_by_char;
|
|
|
|
|
2003-11-15 23:19:05 +00:00
|
|
|
archive_handle->src_fd = open_transformer(archive_handle->src_fd, uncompressStream);
|
2002-11-05 02:56:57 +00:00
|
|
|
archive_handle->offset = 0;
|
|
|
|
while (get_header_tar(archive_handle) == EXIT_SUCCESS);
|
|
|
|
|
2003-11-05 04:55:58 +00:00
|
|
|
/* Can only do one file at a time */
|
2002-11-05 02:56:57 +00:00
|
|
|
return(EXIT_FAILURE);
|
|
|
|
}
|