Diff
Not logged in

Differences From:

File src/file.c part of check-in [c7278fd013] - Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning. by jnc on 2007-09-22 06:47:11. Also file src/file.c part of check-in [3c5482959c] - Merge in the w32 changes. by drh on 2007-09-22 19:43:55. [view]

To:

File src/file.c part of check-in [c841af0d50] - Fixed error with absolute pathnames when opening a repo on Win32 by mjanssen on 2007-09-24 19:42:15. [view]

@@ -183,9 +183,9 @@
 ** Remove all /./ path elements.
 ** Convert /A/../ to just /
 */
 void file_canonical_name(const char *zOrigName, Blob *pOut){
-  if( zOrigName[0]=='/' ){
+  if( zOrigName[0]=='/' || (zOrigName[1]==':' && zOrigName[2]=='\\') ){
     blob_set(pOut, zOrigName);
     blob_materialize(pOut);
   }else{
     char zPwd[2000];