Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Improved detection of invalid home directories and better error messages when invalid home directories are detected. Ticket [c3971eac71a1bd0] |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
822133a7638132cb7c4e2aad3055a679 |
| User & Date: | drh 2010-04-22 12:44:25.000 |
Context
|
2010-04-22
| ||
| 15:18 | Back out check-in [fc23960258211b5bc]. This will close ticket [a534227710d3e5] but re-open ticket [3b1533a090eebd09d]. check-in: f7ec914037 user: drh tags: trunk | |
| 12:44 | Improved detection of invalid home directories and better error messages when invalid home directories are detected. Ticket [c3971eac71a1bd0] check-in: 822133a763 user: drh tags: trunk | |
| 01:02 | When the "name" parameter for the /artifact webpage (and similar pages) is ambiguous, bring up a page that allows the user to choose between the various options. Ticket [901936cf06df1b9b9a]. check-in: d02115bbf0 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
654 655 656 657 658 659 660 |
if( zHome==0 ){
zHome = getenv("APPDATA");
if( zHome==0 ){
zHome = getenv("HOMEPATH");
}
}
if( zHome==0 ){
| | | | | > > > > > > > > | 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
if( zHome==0 ){
zHome = getenv("APPDATA");
if( zHome==0 ){
zHome = getenv("HOMEPATH");
}
}
if( zHome==0 ){
fossil_fatal("cannot locate home directory - "
"please set the HOMEPATH environment variable");
}
#else
zHome = getenv("HOME");
if( zHome==0 ){
fossil_fatal("cannot locate home directory - "
"please set the HOME environment variable");
}
#endif
if( file_isdir(zHome)!=1 ){
fossil_fatal("invalid home directory: %s", zHome);
}
#ifndef __MINGW32__
if( access(zHome, W_OK) ){
fossil_fatal("home directory %s must be writeable", zHome);
}
#endif
g.zHome = mprintf("%/", zHome);
#ifdef __MINGW32__
/* . filenames give some window systems problems and many apps problems */
zDbName = mprintf("%//_fossil", zHome);
#else
|
| ︙ | ︙ |