aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive/get_header_tar_lzma.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/get_header_tar_lzma.c')
-rw-r--r--archival/libunarchive/get_header_tar_lzma.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/archival/libunarchive/get_header_tar_lzma.c b/archival/libunarchive/get_header_tar_lzma.c
new file mode 100644
index 000000000..63dc8bc2c
--- /dev/null
+++ b/archival/libunarchive/get_header_tar_lzma.c
@@ -0,0 +1,23 @@
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: */