Lines Matching refs:root_dir
140 i_assert(set->root_dir == NULL || *set->root_dir != '\0' ||
157 if (set->root_dir != NULL) {
158 list->set.root_dir = p_strdup(list->pool, set->root_dir);
160 strcmp(set->index_dir, set->root_dir) == 0 ? NULL :
163 strcmp(set->index_pvt_dir, set->root_dir) == 0 ? NULL :
166 strcmp(set->index_cache_dir, set->root_dir) == 0 ? NULL :
169 strcmp(set->control_dir, set->root_dir) == 0 ? NULL :
215 list->set.root_dir == NULL ? "" : list->set.root_dir,
306 if (fix_path(user, str, expand_home, &set_r->root_dir, &error) < 0) {
310 if (strncmp(set_r->root_dir, "INBOX=", 6) == 0) {
311 /* probably mbox user trying to avoid root_dir */
1145 const char *expanded, *unexpanded, *root_dir, *p;
1175 if (stat_first_parent(expanded, &root_dir, &st) < 0) {
1177 mail_error_eacces_msg("stat", root_dir) :
1178 t_strdup_printf("stat(%s) failed: %m", root_dir);
1192 if (root_dir == expanded) {
1196 (gid_t)-1, root_dir) < 0 &&
1227 const char *root_dir;
1244 if (!mailbox_list_get_root_path(list, type, &root_dir))
1246 i_assert(strncmp(root_dir, path, strlen(root_dir)) == 0);
1247 if (strcmp(root_dir, path) != 0 && stat(root_dir, &st) == 0) {
1429 path = set->root_dir;
1436 path = set->root_dir;
1438 path = t_strconcat(set->root_dir, "/",
1445 path = set->root_dir;
1454 set->control_dir : set->root_dir;
1485 path = set->root_dir;
1869 const char *root_dir, *path, *mailbox_name;
1888 root_dir = mailbox_list_get_root_forced(list, MAILBOX_LIST_PATH_TYPE_MAILBOX);
1889 len = strlen(root_dir);
1890 if (strncmp(root_dir, *name, len) == 0 && (*name)[len] == '/') {
2021 const char *args, const char *root_dir,
2032 fs_set.root_path = root_dir;