Curious: removing second condition from <pre>if( access(zDbName, R_OK) || file_size(zDbName)<1024 ) (function "void db_open_repository()", db.c)</pre> things seem to work.