Fossil

Check-in [dc21949fa3]
Login

Check-in [dc21949fa3]

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

Overview
Comment:When searching for a repository to open based on the request URI, do not mistake directories whose names end with ".fossil" as repositories. This resolves the issue mentioned in [forum:/forumpost/3724e6175b7f6163|forum post 3724e6175b].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dc21949fa3091428bd852d6b5f59634d8ad6319fd3729468314fb4182567ee5e
User & Date: drh 2025-03-12 19:37:48.438
Context
2025-03-12
19:45
Rollback the change that converted the "manifest" setting to unversioned, as Stephan points out that maybe it does work after all. ... (check-in: e8dc1dfe0e user: drh tags: trunk)
19:37
When searching for a repository to open based on the request URI, do not mistake directories whose names end with ".fossil" as repositories. This resolves the issue mentioned in [forum:/forumpost/3724e6175b7f6163|forum post 3724e6175b]. ... (check-in: dc21949fa3 user: drh tags: trunk)
18:50
add mention of ticket-wikis to changelog ... (check-in: c23741ac5d user: jkosche tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1847
1848
1849
1850
1851
1852
1853





1854
1855
1856
1857
1858
1859
1860
      ** then szFile will become zero (for an empty file) or positive.
      ** Special case:  Assume any file with a basename of ".fossil" does
      ** not exist.
      */
      zCleanRepo = file_cleanup_fullpath(zRepo);
      if( szFile==0 && sqlite3_strglob("*/.fossil",zRepo)!=0 ){
        szFile = file_size(zCleanRepo, ExtFILE);





        if( g.fHttpTrace ){
          sqlite3_snprintf(sizeof(zBuf), zBuf, "%lld", szFile);
          @ <!-- file_size(%h(zCleanRepo)) is %s(zBuf) -->
          fprintf(stderr, "# file_size(%s) = %s\n", zCleanRepo, zBuf);
        }
      }








>
>
>
>
>







1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
      ** then szFile will become zero (for an empty file) or positive.
      ** Special case:  Assume any file with a basename of ".fossil" does
      ** not exist.
      */
      zCleanRepo = file_cleanup_fullpath(zRepo);
      if( szFile==0 && sqlite3_strglob("*/.fossil",zRepo)!=0 ){
        szFile = file_size(zCleanRepo, ExtFILE);
        if( szFile>0 && !file_isfile(zCleanRepo, ExtFILE) ){
          /* Only let szFile be non-negative if zCleanRepo really is a file
          ** and not a directory or some other filesystem object. */
          szFile = -1;
        }
        if( g.fHttpTrace ){
          sqlite3_snprintf(sizeof(zBuf), zBuf, "%lld", szFile);
          @ <!-- file_size(%h(zCleanRepo)) is %s(zBuf) -->
          fprintf(stderr, "# file_size(%s) = %s\n", zCleanRepo, zBuf);
        }
      }