3
0

get_header_tar_lzma.c 579 B

1234567891011121314151617181920212223
  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. #include "unarchive.h"
  8. char get_header_tar_lzma(archive_handle_t * archive_handle)
  9. {
  10. /* Can't lseek over pipes */
  11. archive_handle->seek = seek_by_char;
  12. archive_handle->src_fd = open_transformer(archive_handle->src_fd, unlzma);
  13. archive_handle->offset = 0;
  14. while (get_header_tar(archive_handle) == EXIT_SUCCESS);
  15. /* Can only do one file at a time */
  16. return EXIT_FAILURE;
  17. }
  18. /* vi:set ts=4: */