Fossil

Check-in [f304c56974]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enhance the db_repository_filename() routine to return the canonical filename.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f304c569745505c9eca8d02926c8db29da83adcfe6b58047bf84b5068ed0d624
User & Date: drh 2020-08-16 19:08:40.613
Context
2020-08-16
22:35
Pointed 'latest release' entry at the 2.12 changelog, per forum post. check-in: dba21929b2 user: stephan tags: trunk
19:08
Enhance the db_repository_filename() routine to return the canonical filename. check-in: f304c56974 user: drh tags: trunk
17:47
Fix the manifest_reparent_checkin() routine so that the "parent" tag will actually work. check-in: 2bdbbc8a0e user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
1781
1782
1783
1784
1785
1786
1787



1788
1789
1790
1791
1792
1793
1794
  assert( g.zLocalRoot );
  if( zRepo==0 ){
    zRepo = db_lget("repository", 0);
    if( zRepo && !file_is_absolute_path(zRepo) ){
      char * zFree = zRepo;
      zRepo = mprintf("%s%s", g.zLocalRoot, zRepo);
      fossil_free(zFree);



    }
  }
  return zRepo;
}

/*
** Returns non-zero if the default value for the "allow-symlinks" setting







>
>
>







1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
  assert( g.zLocalRoot );
  if( zRepo==0 ){
    zRepo = db_lget("repository", 0);
    if( zRepo && !file_is_absolute_path(zRepo) ){
      char * zFree = zRepo;
      zRepo = mprintf("%s%s", g.zLocalRoot, zRepo);
      fossil_free(zFree);
      zFree = zRepo;
      zRepo = file_canonical_name_dup(zFree);
      fossil_free(zFree);
    }
  }
  return zRepo;
}

/*
** Returns non-zero if the default value for the "allow-symlinks" setting