diff options
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index 3775598cc..b2ae3b2af 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -541,7 +541,7 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
541 | static char get_header_tar_Z(archive_handle_t *archive_handle) | 541 | static char get_header_tar_Z(archive_handle_t *archive_handle) |
542 | { | 542 | { |
543 | /* Cant lseek over pipe's */ | 543 | /* Cant lseek over pipe's */ |
544 | archive_handle->seek = seek_by_char; | 544 | archive_handle->seek = seek_by_read; |
545 | 545 | ||
546 | /* do the decompression, and cleanup */ | 546 | /* do the decompression, and cleanup */ |
547 | if (xread_char(archive_handle->src_fd) != 0x1f || | 547 | if (xread_char(archive_handle->src_fd) != 0x1f || |
@@ -805,7 +805,7 @@ int tar_main(int argc, char **argv) | |||
805 | 805 | ||
806 | if ((tar_filename[0] == '-') && (tar_filename[1] == '\0')) { | 806 | if ((tar_filename[0] == '-') && (tar_filename[1] == '\0')) { |
807 | tar_handle->src_fd = fileno(tar_stream); | 807 | tar_handle->src_fd = fileno(tar_stream); |
808 | tar_handle->seek = seek_by_char; | 808 | tar_handle->seek = seek_by_read; |
809 | } else { | 809 | } else { |
810 | tar_handle->src_fd = xopen3(tar_filename, flags, 0666); | 810 | tar_handle->src_fd = xopen3(tar_filename, flags, 0666); |
811 | } | 811 | } |