Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When attempting to open the configuration, permit the 'FOSSIL_HOME' environment variable (if present), to override 'HOME'. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
c97a085a0e7200b808dd3a810d46c1ad |
| User & Date: | mistachkin 2015-01-20 16:44:04.126 |
Context
|
2015-01-21
| ||
| 00:17 | Manually merge the blob leak fixes corrected on the 'cgiSetEnv' branch. check-in: 1829fa8845 user: mistachkin tags: trunk | |
|
2015-01-20
| ||
| 17:48 | Experimental changes to add 'setenv' support to CGI script files. check-in: fe77afb158 user: mistachkin tags: cgiSetEnv | |
| 16:44 | When attempting to open the configuration, permit the 'FOSSIL_HOME' environment variable (if present), to override 'HOME'. check-in: c97a085a0e user: mistachkin tags: trunk | |
| 00:03 | During shutdown, check to see if the check-out database (".fslckout") contains a lot of free space, and if it does, VACUUM it. check-in: bf681039e2 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
925 926 927 928 929 930 931 932 |
void db_open_config(int useAttach){
char *zDbName;
char *zHome;
if( g.zConfigDbName ){
if( useAttach==g.useAttach ) return;
db_close_config();
}
#if defined(_WIN32) || defined(__CYGWIN__)
| > > | | | | | | | | | > | | | > | > | | | 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 |
void db_open_config(int useAttach){
char *zDbName;
char *zHome;
if( g.zConfigDbName ){
if( useAttach==g.useAttach ) return;
db_close_config();
}
zHome = fossil_getenv("FOSSIL_HOME");
#if defined(_WIN32) || defined(__CYGWIN__)
if( zHome==0 ){
zHome = fossil_getenv("LOCALAPPDATA");
if( zHome==0 ){
zHome = fossil_getenv("APPDATA");
if( zHome==0 ){
char *zDrive = fossil_getenv("HOMEDRIVE");
char *zPath = fossil_getenv("HOMEPATH");
if( zDrive && zPath ) zHome = mprintf("%s%s", zDrive, zPath);
}
}
}
if( zHome==0 ){
fossil_fatal("cannot locate home directory - please set the "
"FOSSIL_HOME, LOCALAPPDATA, APPDATA, or HOMEPATH "
"environment variables");
}
#else
if( zHome==0 ){
zHome = fossil_getenv("HOME");
}
if( zHome==0 ){
fossil_fatal("cannot locate home directory - please set the "
"FOSSIL_HOME or HOME environment variables");
}
#endif
if( file_isdir(zHome)!=1 ){
fossil_fatal("invalid home directory: %s", zHome);
}
#if defined(_WIN32) || defined(__CYGWIN__)
/* . filenames give some window systems problems and many apps problems */
|
| ︙ | ︙ |