Overview
SHA1 Hash: | becc24e4e9238cd6ccdace0c8047ae7c5fded6e3 |
---|---|
Date: | 2008-05-01 18:42:26 |
User: | drh |
Comment: | On windows builds, understand both "C:/" and "C:\" as the beginning of an absolute pathname. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/file.c from [0ad3dd78ce] to [2d8ec6b3a1].
@@ -204,11 +204,15 @@ ** Remove all /./ path elements. ** Convert /A/../ to just / */ void file_canonical_name(const char *zOrigName, Blob *pOut){ if( zOrigName[0]=='/' - || (strlen(zOrigName)>3 && zOrigName[1]==':' && zOrigName[2]=='\\') ){ +#ifdef __MINGW32__ + || (strlen(zOrigName)>3 && zOrigName[1]==':' + && (zOrigName[2]=='\\' || zOrigName[2]=='/')) +#endif + ){ blob_set(pOut, zOrigName); blob_materialize(pOut); }else{ char zPwd[2000]; if( getcwd(zPwd, sizeof(zPwd)-20)==0 ){