Ticket UUID: | 2790985 | |||
Title: | fail to extract tar created by mks tools | |||
Type: | Bug | Version: | None | |
Submitter: | royterry | Created on: | 2009-05-13 02:00:13 | |
Subsystem: | tar | Assigned To: | afaupell | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2009-05-14 05:36:24 | |
Resolution: | Fixed | Closed By: | afaupell | |
Closed on: | 2009-05-13 21:23:29 | |||
Description: |
The 3rd call to readHearder blows up attempting to tar::untar this file made by windows tar.exe from MKS. Single file tar test case attached. FWIW, bsdtar windows exe running on same machine with same file) can extract the file fine. There is apparently confusion over the seek for preceding read as it seems not to return a proper header block. But bsdtar isn't affected. Thanks for any help.. Roy ERROR LOOKS LIKE THIS (app) 268 % ::tar::untar ../dia/srch-30apr-01may-2009/test-mks.tar expected integer but got "0" | |||
User Comments: |
royterry added on 2009-05-14 05:36:24:
Confirming the "fixed" closed modification now works for my two test cases. Thanks very much! Roy afaupell added on 2009-05-14 04:23:29: fixed royterry added on 2009-05-14 00:27:52: Scratch the -glob doc missing. It is there. royterry added on 2009-05-14 00:23:26: File Added - 326904: console.out royterry added on 2009-05-14 00:22:47: File Added - 326903: test2-mks.tar royterry added on 2009-05-14 00:22:07: Tried v0.5 from CVS as requested. This change does untar the original test file. However, when the test file has multiple directories there are errors. This seems due to trouble distinguishing between ordinary files and directories as header(type) == 0 even for directories. attached is console snap showing one example of error also attached is test2-mks.tar which demos the error. There is a second look to the error that happens on my large file. I will describe that one if needed. BTW, I notice that the -glob option to ::untar does not appear in my ActiveState doc page. afaupell added on 2009-05-13 13:34:38: please try v 0.5 from cvs afaupell added on 2009-05-13 09:42:48: it appears mks is writing the very old style tar format. the tar package really only handles the posix ustar format. I will leave this open as a reminder to look at supporting the old format. royterry added on 2009-05-13 09:00:13: File Added - 326809: test-mks.tar |