Fossil

Ticket Change Details
Login
Overview

Artifact ID: 782f8afcae76d1c9236ac31d94daeeb915322317
Ticket: cdd360438de1331b83874fbb70f4e0d22fdbae79
Fossil does not handle absolute paths without disk drives in Windows.
User & Date: drh 2009-09-13 11:47:15
Changes

  1. Appended to comment:
    
    
    <hr><i>drh added on 2009-09-13 11:47:15:</i><br>
    I think that the following patch may be sufficient to fix this:
    
    <verbatim>
    --- src/file.c
    +++ src/file.c
    @@ -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);
    </verbatim>
    
    I will strive to boot up a copy of windows this afternoon and try it out.
    In the meantime, a work-around might be to use forward slashes ("/") instead of
    backslashes ("\") in the pathname, at least for the first character of
    an absolute pathname.
    
    
  2. resolution changed to: "Open"