From: <ea...@us...> - 2003-04-19 00:54:30
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1:/tmp/cvs-serv18667 Modified Files: Tag: gcc_3_2_2_upgrade 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.43.2.1 retrieving revision 1.43.2.2 diff -C2 -d -r1.43.2.1 -r1.43.2.2 *** ChangeLog.MSYS 19 Apr 2003 00:21:06 -0000 1.43.2.1 --- ChangeLog.MSYS 19 Apr 2003 00:54:25 -0000 1.43.2.2 *************** *** 26,29 **** --- 26,33 ---- 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.32.2.1 retrieving revision 1.32.2.2 diff -C2 -d -r1.32.2.1 -r1.32.2.2 *** path.cc 19 Apr 2003 00:21:07 -0000 1.32.2.1 --- path.cc 19 Apr 2003 00:54:25 -0000 1.32.2.2 *************** *** 3326,3329 **** --- 3326,3345 ---- // { + 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) |