Mail Archives: cygwin/1997/02/11/22:45:15
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 AT aironet DOT com
(MIME) Victor DOT Griswold AT pobox DOT com
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -