This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tar fails with some combinations of line ending and binmode setting


Hi,

In some cases, a tar archive containing files with DOS line endings
will fail to untar with the messages:
tar: Skipping to next header
tar: Error exit delayed from previous errors

The attached script "testtar" tests the various combinations.  It creates
some text files with DOS line endings and some with Unix line endings.
It then creates an archive of each type of file with CYGWIN set to either
binmode or nobinmode.  Then it tests the ability to read the four archives
with the two settings of CYGWIN.

With CYGWIN set to binmode, tar fails on the archive of DOS files created under nobinmode.

With CYGWIN set to nobinmode, tar fails on the archives of DOS files
created under either mode.

This happens on both a Windows 2000 machine with cygwin 1.5.19-4 and
a Windows XP machine with 1.5.18-1.

In fact, the archive of DOS files created under nobinmode must be bad since it fails to untar under Linux and OSX also. All the other archives are OK by this test.

Thanks.

David Mastronarde

Attachment: cygcheck.out.W2K
Description: Text document

Attachment: cygcheck.out.XP
Description: Text document

Attachment: testtar
Description: Text document

Attachment: testresult
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]