source: branches/stable/mindi-busybox/archival/libunarchive/get_header_tar_lzma.c @ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 14 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

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