Check-in [42bf80978d]
Not logged in
Overview

SHA1 Hash:42bf80978d9740dbac8c762033348fbb1da9b0de
Date: 2009-09-13 16:19:43
User: drh
Comment:On windows, if the first character of a pathname is '\' then assume that is a full pathname, not a relative pathname. Ticket cdd360438de.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/file.c from [7217527055] to [146394c81a].

@@ -244,10 +244,11 @@
 ** Convert /A/../ to just /
 */
 void file_canonical_name(const char *zOrigName, Blob *pOut){
   if( zOrigName[0]=='/'
 #ifdef __MINGW32__
+      || zOrigName[0]=='\\'
       || (strlen(zOrigName)>3 && zOrigName[1]==':'
            && (zOrigName[2]=='\\' || zOrigName[2]=='/'))
 #endif
   ){
     blob_set(pOut, zOrigName);