source: MondoRescue/branches/2.2.9/mindi-busybox/archival/libunarchive/get_header_tar_lzma.c@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:eol-style set to native
File size: 658 bytes
Line 
1/* vi: set sw=4 ts=4: */
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
9#include "libbb.h"
10#include "unarchive.h"
11
12char get_header_tar_lzma(archive_handle_t * archive_handle)
13{
14 /* Can't lseek over pipes */
15 archive_handle->seek = seek_by_read;
16
17 archive_handle->src_fd = open_transformer(archive_handle->src_fd, unpack_lzma_stream, "unlzma", "unlzma", "-cf", "-", NULL);
18 archive_handle->offset = 0;
19 while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/;
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.