Contents of /trunk/busybox/patches/busybox-1.18.2-tar.patch
Parent Directory | Revision Log
Revision 1291 -
(show annotations)
(download)
Tue Mar 1 18:35:05 2011 UTC (13 years, 6 months ago) by niro
File size: 579 byte(s)
Tue Mar 1 18:35:05 2011 UTC (13 years, 6 months ago) by niro
File size: 579 byte(s)
added patch to fix tar issues
1 | --- busybox-1.18.2/archival/tar.c |
2 | +++ busybox-1.18.2-tar/archival/tar.c |
3 | @@ -1037,8 +1037,10 @@ int tar_main(int argc UNUSED_PARAM, char |
4 | tar_handle->src_fd = tar_fd; |
5 | tar_handle->seek = seek_by_read; |
6 | } else { |
7 | - if (ENABLE_FEATURE_TAR_AUTODETECT && flags == O_RDONLY) { |
8 | - get_header_ptr = get_header_tar; |
9 | + if (ENABLE_FEATURE_TAR_AUTODETECT |
10 | + && flags == O_RDONLY |
11 | + && get_header_ptr == get_header_tar |
12 | + ) { |
13 | tar_handle->src_fd = open_zipped(tar_filename); |
14 | if (tar_handle->src_fd < 0) |
15 | bb_perror_msg_and_die("can't open '%s'", tar_filename); |