This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
tar 1.11.8, cygwin32 B17.1: Problem with remote tapes and ':' in filenames.
- To: "'GNU:Tar-Bugs'" <bug-gnu-utils at prep dot ai dot mit dot edu>, "Cygnus:GNU-WIN32" <gnu-win32 at cygnus dot com>
- Subject: tar 1.11.8, cygwin32 B17.1: Problem with remote tapes and ':' in filenames.
- From: "Griswold, Victor" <VGris at aironet dot com>
- Date: Tue, 11 Feb 1997 11:27:00 -0500
An inappropriate parsing of a WIN32 filespec containing a ':' results in
uncovering a bug in '__rmt_open' of 'src/rtapelib.c'. In line 311,
'remote_user' is dereferenced without first checking to see if it was
specified by the invocation of 'tar'. In such a case, 'remote_user' is
still set to NULL (line 282), and an exception occurs when trying to
read location 0.
With respect to cygwin32, the '_remdev' macro in 'rmt.h' presumes that,
if a filespec contains a colon not preceeded by a slash, it is a remote
filename. This is an inadequate check for the WIN32 environment, where
"__rmt_path == (Path + 1) && isalpha((Path[0])) && (__rmt_path[1] == '/'
|| __rmt_path[1] == '\\') " should also be checked.
The only apparent workaround, without something like the above patch, is
to specify '--force-local' on all 'tar' command lines which might
potentially contain a drive letter (unpleasant, and should be
unnecessary, though an appropriate shell alias would help).
Victor J. Griswold, D.Sc.
Aironet Wireless Communications, Inc.
voice: 330-664-7987
fax: 330-664-7301
email: (MS-Mail) vgris@aironet.com
(MIME) Victor.Griswold@pobox.com
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".