Lines Matching refs:alt_path
33 dbox_alt_path_has_changed(const char *root_dir, const char *alt_path,
40 return alt_path != NULL;
45 if (alt_path == NULL) {
49 } else if (strcmp(linkpath, alt_path) != 0) {
58 "but currently ALT=%s", root_dir, linkpath, alt_path);
66 const char *root_dir, *alt_symlink_path, *alt_path, *alt_path2;
72 &alt_path);
75 if (!dbox_alt_path_has_changed(root_dir, alt_path, alt_path2,
81 if (alt_path != NULL) {
82 int ret = symlink(alt_path, alt_symlink_path);
88 ret = symlink(alt_path, alt_symlink_path);
92 alt_path, alt_symlink_path);
320 const char *alt_path;
337 ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_ALT_MAILBOX, &alt_path);
338 if (ret > 0 && stat(alt_path, &st) == 0) {
339 ret = dir_is_empty(box->storage, alt_path);
383 const char *alt_path;
387 &alt_path))
391 if (stat(alt_path, &st) == 0)
394 i_error("stat(%s) failed: %m", alt_path);
400 if (mailbox_list_mkdir_root(list, alt_path,