Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Allow the root of a check-out to be in the root of the filesystem. Ticket [675f36eac4902cf] |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b317471d8c8567ec317306709db9406b |
| User & Date: | drh 2011-07-19 23:29:05.079 |
Context
|
2011-07-20
| ||
| 08:29 | Merge trunk with ben-testing check-in: 74d65bab28 user: ben tags: ben-testing | |
|
2011-07-19
| ||
| 23:44 | Update the built-in SQLite to the latest 3.7.8 alpha, for the purpose of testing SQLite. check-in: 4adc11edb7 user: drh tags: trunk | |
| 23:29 | Allow the root of a check-out to be in the root of the filesystem. Ticket [675f36eac4902cf] check-in: b317471d8c user: drh tags: trunk | |
| 23:18 | Do not delete initial whitespace from a wiki page prior to formatting as this can mess up the bullet and enumeration markup. Ticket [207829a5c5ab7af] check-in: 4ac6328f76 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
807 808 809 810 811 812 813 814 815 816 817 818 819 820 |
int i, n;
char zPwd[2000];
static const char *aDbName[] = { "/_FOSSIL_", "/.fos" };
if( g.localOpen) return 1;
file_getcwd(zPwd, sizeof(zPwd)-20);
n = strlen(zPwd);
while( n>0 ){
if( file_access(zPwd, W_OK) ) break;
for(i=0; i<sizeof(aDbName)/sizeof(aDbName[0]); i++){
sqlite3_snprintf(sizeof(zPwd)-n, &zPwd[n], "%s", aDbName[i]);
if( isValidLocalDb(zPwd) ){
/* Found a valid checkout database file */
zPwd[n] = 0;
| > | 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 |
int i, n;
char zPwd[2000];
static const char *aDbName[] = { "/_FOSSIL_", "/.fos" };
if( g.localOpen) return 1;
file_getcwd(zPwd, sizeof(zPwd)-20);
n = strlen(zPwd);
if( n==1 && zPwd[0]=='/' ) zPwd[0] = '.';
while( n>0 ){
if( file_access(zPwd, W_OK) ) break;
for(i=0; i<sizeof(aDbName)/sizeof(aDbName[0]); i++){
sqlite3_snprintf(sizeof(zPwd)-n, &zPwd[n], "%s", aDbName[i]);
if( isValidLocalDb(zPwd) ){
/* Found a valid checkout database file */
zPwd[n] = 0;
|
| ︙ | ︙ |