blob: 06b8daa0f800ed14fa8c523885d25af650884714 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Rob Landleyc1d69902006-01-20 18:28:50 +00002/*
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 "unarchive.h"
10
11char get_header_tar_lzma(archive_handle_t * archive_handle)
12{
13 /* Can't lseek over pipes */
Denis Vlasenko13858992006-10-08 12:49:22 +000014 archive_handle->seek = seek_by_read;
Rob Landleyc1d69902006-01-20 18:28:50 +000015
16 archive_handle->src_fd = open_transformer(archive_handle->src_fd, unlzma);
17 archive_handle->offset = 0;
Denis Vlasenko13858992006-10-08 12:49:22 +000018 while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/;
Rob Landleyc1d69902006-01-20 18:28:50 +000019
20 /* Can only do one file at a time */
21 return EXIT_FAILURE;
22}