|
From: <ea...@pr...> - 2002-11-18 22:14:41
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin
In directory sc8-pr-cvs1:/tmp/cvs-serv645
Modified Files:
path.cc ChangeLog.MSYS
Log Message:
* path.cc (cygwin_conv_to_win32_path): Bug and typo fixes.
Thanks to Luke Dunstan <in...@us...>
Index: path.cc
===================================================================
RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/path.cc,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** path.cc 17 Nov 2002 03:59:13 -0000 1.23
--- path.cc 18 Nov 2002 22:14:37 -0000 1.24
***************
*** 3101,3105 ****
if (((path[0] >= 'a' && path[0] <= 'z') ||
(path[0] >= 'A' && path[0] <= 'Z')) &&
! path[1] == ';')
RetVal = true;
return RetVal;
--- 3101,3105 ----
if (((path[0] >= 'a' && path[0] <= 'z') ||
(path[0] >= 'A' && path[0] <= 'Z')) &&
! path[1] == ':')
RetVal = true;
return RetVal;
***************
*** 3136,3140 ****
{ \
retpath_buflen = ((retpath_buflen * 2 <= retpath_len) ? \
! retpath_buflen * 2 : retpath_len + 1); \
retpath = (char *)realloc (retpath, retpath_buflen); \
} \
--- 3136,3140 ----
{ \
retpath_buflen = ((retpath_buflen * 2 <= retpath_len) ? \
! retpath_len + 1 : retpath_buflen * 2); \
retpath = (char *)realloc (retpath, retpath_buflen); \
} \
***************
*** 3151,3155 ****
{ \
retpath_buflen = ((retpath_buflen * 2 <= retpath_len) ? \
! retpath_buflen * 2 : retpath_len + 1); \
retpath = (char *)realloc (retpath, retpath_buflen); \
} \
--- 3151,3155 ----
{ \
retpath_buflen = ((retpath_buflen * 2 <= retpath_len) ? \
! retpath_len + 1 : retpath_buflen * 2); \
retpath = (char *)realloc (retpath, retpath_buflen); \
} \
***************
*** 3177,3181 ****
//
// Multiple forward slashes are treated special,
! // remove one and return.
//
else if (path[0] == '/' && path[1] == '/')
--- 3177,3182 ----
//
// Multiple forward slashes are treated special,
! // Remove one and return for the form of //foo or ///bar
! // but just return for the form of //server/share.
//
else if (path[0] == '/' && path[1] == '/')
***************
*** 3184,3193 ****
while (spath[tidx] && spath[tidx] == '/')
tidx++;
! sspath = strchr (&spath[tidx], '/');
! if (sspath)
{
retpathcpy (spath);
}
! retpathcpy (&spath[1]);
}
//
--- 3185,3196 ----
while (spath[tidx] && spath[tidx] == '/')
tidx++;
! if (strchr (&spath[tidx], '/'))
{
retpathcpy (spath);
}
! else
! {
! retpathcpy (&spath[1]);
! }
}
//
***************
*** 3233,3237 ****
}
else
- if (! path_changed)
{
switch (spath[0])
--- 3236,3239 ----
***************
*** 3326,3331 ****
break;
}
! else
! retpathcpy (path);
break;
case '\'':
--- 3328,3332 ----
break;
}
! retpathcpy (path);
break;
case '\'':
***************
*** 3346,3351 ****
break;
}
! else
! retpathcpy (path);
break;
default:
--- 3347,3351 ----
break;
}
! retpathcpy (path);
break;
default:
Index: ChangeLog.MSYS
===================================================================
RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** ChangeLog.MSYS 17 Nov 2002 03:59:13 -0000 1.29
--- ChangeLog.MSYS 18 Nov 2002 22:14:37 -0000 1.30
***************
*** 1,4 ****
--- 1,9 ----
2002-11-16 Earnie Boyd <ea...@us...>
+ * path.cc (cygwin_conv_to_win32_path): Bug and typo fixes.
+ Thanks to Luke Dunstan <in...@us...>
+
+ 2002-11-16 Earnie Boyd <ea...@us...>
+
* path.cc (cygwin_conv_to_win32_path): Rework to allow for relative
path lists.
|