Lines Matching defs:path
168 char path[MAXPATHLEN + 1];
173 strcpy(path, dbdir);
175 len = strlen(path);
176 if (path[len - 1] != '/') {
177 strcat(path, "/");
182 strcpy(path + len, old_dbfiles[i]);
183 if ( !(stat(path, &st) < 0) ) {
188 LOG(log_error, logtype_default, "cnid_open: Checking %s gave %s", path, strerror(errno));
199 char path[MAXPATHLEN + 1];
230 strcpy(path, args->dir);
231 if (path[len - 1] != '/') {
232 strcat(path, "/");
236 strcpy(path + len, DBHOME);
237 if ((stat(path, &st) < 0) && (ad_mkdir(path, 0777 & ~args->mask) < 0)) {
238 LOG(log_error, logtype_default, "cnid_open: DBHOME mkdir failed for %s", path);
242 if (upgrade_required(path)) {
264 if ((rc = db->dbenv->open(db->dbenv, path, DBOPTIONS, 0666 & ~args->mask)) != 0) {
265 LOG(log_error, logtype_default, "cnid_open: dbenv->open (rw) of %s failed: %s", path, db_strerror(rc));
270 "cnid_open: CATASTROPHIC ERROR opening database environment %s. Run db_recovery -c immediately", path);
277 if ((rc = db->dbenv->open(db->dbenv, path, DB_INIT_MPOOL, 0666 & ~args->mask)) != 0) {
280 if ((rc = db->dbenv->open(db->dbenv, path, 0, 0666 & ~args->mask)) != 0) {
281 LOG(log_error, logtype_default, "cnid_open: dbenv->open of %s failed: %s", path, db_strerror(rc));
287 LOG(log_info, logtype_default, "cnid_open: Obtained read-only database environment %s", path);