Commit 1d9adec7 1d9adec7be7281104d27058fe3fdc52030ba5895 by Sergey Poznyakoff

Forgotten to commit yesterday

1 parent aca3bfcc
...@@ -52,7 +52,16 @@ mailbox_folder_create (mu_mailbox_t mbox, const char *name, ...@@ -52,7 +52,16 @@ mailbox_folder_create (mu_mailbox_t mbox, const char *name,
52 char *fname; 52 char *fname;
53 53
54 if ((rc = mu_url_aget_path (mbox->url, &fname))) 54 if ((rc = mu_url_aget_path (mbox->url, &fname)))
55 {
56 if (rc == MU_ERR_NOENT)
57 {
58 fname = strdup (mu_url_to_string (mbox->url));
59 if (!fname)
60 return ENOMEM;
61 }
62 else
55 return rc; 63 return rc;
64 }
56 65
57 if (mu_url_is_scheme (mbox->url, "file") 66 if (mu_url_is_scheme (mbox->url, "file")
58 || mu_url_is_scheme (mbox->url, "mbox") 67 || mu_url_is_scheme (mbox->url, "mbox")
......