Differences From:
File
src/db.c
part of check-in
[791a513c28]
- Improvements to clone performance. Skip cross-linking during the clone
the automatically rebuild after the clone. Fixes to rebuild to make sure
all artifacts are crosslinked.
by
drh on
2008-05-18 17:18:41.
[view]
To:
File
src/db.c
part of check-in
[69650f2963]
- Better error message when a CGI configuration specifies a non-existant
or unreadable repository.
by
drh on
2008-05-22 15:31:38.
[view]
@@ -660,9 +660,16 @@
db_err("unable to find the name of a repository database");
}
}
if( access(zDbName, R_OK) || file_size(zDbName)<1024 ){
- fossil_panic("no such repository: %s", zDbName);
+ if( access(zDbName, 0) ){
+ fossil_panic("repository does not exists or"
+ " is in an unreadable directory: %s", zDbName);
+ }else if( access(zDbName, R_OK) ){
+ fossil_panic("read permission denied for repository %s", zDbName);
+ }else{
+ fossil_panic("not a valid repository: %s", zDbName);
+ }
}
db_open_or_attach(zDbName, "repository");
g.repositoryOpen = 1;
g.zRepositoryName = mprintf("%s", zDbName);