Lines Matching defs:path
72 char path[MAXPATHLEN + 1];
78 /* note: dir and path are not used for in memory db */
92 strcpy(path, args->dir);
93 if (path[len - 1] != '/') {
94 strcat(path, "/");
98 strcpy(path + len, DBHOME);
100 if ((stat(path, &st) < 0) && (ad_mkdir(path, 0777 & ~args->mask) < 0)) {
101 LOG(log_error, logtype_default, "tdb_open: DBHOME mkdir failed for %s", path);
109 strcat(path, "/");
113 path[len + DBHOMELEN] = '\0';
114 strcat(path, DBCNID);
116 db->tdb_cnid = tdb_open(path, hash_size, tdb_flags , O_RDWR | O_CREAT, 0666 & ~args->mask);
118 LOG(log_error, logtype_default, "tdb_open: unable to open tdb", path);