source: MondoRescue/branches/2.2.5/mindi-busybox/archival/libunarchive/get_header_tar_lzma.c@ 3232

Last change on this file since 3232 was 1765, checked in by Bruno Cornec, 17 years ago

Update to busybox 1.7.2

File size: 658 bytes
RevLine 
[1765]1/* vi: set sw=4 ts=4: */
[821]2/*
3 * Small lzma deflate implementation.
4 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
5 *
6 * Licensed under GPL v2, see file LICENSE in this tarball for details.
7 */
8
[1765]9#include "libbb.h"
[821]10#include "unarchive.h"
11
12char get_header_tar_lzma(archive_handle_t * archive_handle)
13{
14 /* Can't lseek over pipes */
[1765]15 archive_handle->seek = seek_by_read;
[821]16
[1765]17 archive_handle->src_fd = open_transformer(archive_handle->src_fd, unpack_lzma_stream, "unlzma", "unlzma", "-cf", "-", NULL);
[821]18 archive_handle->offset = 0;
[1765]19 while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/;
[821]20
21 /* Can only do one file at a time */
22 return EXIT_FAILURE;
23}
Note: See TracBrowser for help on using the repository browser.