From: <ea...@us...> - 2003-04-18 15:03:43
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1:/tmp/cvs-serv25615 Modified Files: ChangeLog.MSYS path.cc Log Message: * path.cc (cygwin_conv_to_win32_path): Properly handle /foo/../bar path. Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** ChangeLog.MSYS 18 Apr 2003 12:16:47 -0000 1.44 --- ChangeLog.MSYS 18 Apr 2003 15:03:37 -0000 1.45 *************** *** 1,4 **** --- 1,8 ---- 2003-04-18 Earnie Boyd <ea...@us...> + * path.cc (cygwin_conv_to_win32_path): Properly handle /foo/../bar path. + + 2003-04-18 Earnie Boyd <ea...@us...> + * autoload.cc (NetServerEnum): Add load. * debug.h (being_debugged()): Define. Index: path.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/path.cc,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** path.cc 18 Apr 2003 12:16:47 -0000 1.33 --- path.cc 18 Apr 2003 15:03:38 -0000 1.34 *************** *** 3322,3325 **** --- 3322,3341 ---- // { + sspath = strchr (spath, '.'); + if (sspath && *(sspath - 1) == '/' && *(sspath + 1) == '.') + { + *(sspath - 1) = '\0'; + sret = cygwin_conv_to_win32_path (spath, swin32_path); + if (sret) + { + retpathcpy (path); + retval = -1; + break; + } + retpathcpy (swin32_path); + retpathcat ("/"); + retpathcat (sspath); + break; + } path_conv p (spath, 0); if (p.error) |