* mailbox/folder_mbox.c (folder_mbox_open): Implemeted.
Showing
2 changed files
with
10 additions
and
1 deletions
... | @@ -23,6 +23,7 @@ | ... | @@ -23,6 +23,7 @@ |
23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
24 | #include <dirent.h> | 24 | #include <dirent.h> |
25 | #include <sys/stat.h> | 25 | #include <sys/stat.h> |
26 | #include <fcntl.h> | ||
26 | #include <unistd.h> | 27 | #include <unistd.h> |
27 | #include <string.h> | 28 | #include <string.h> |
28 | #include <glob.h> | 29 | #include <glob.h> |
... | @@ -163,7 +164,11 @@ folder_mbox_destroy (folder_t folder) | ... | @@ -163,7 +164,11 @@ folder_mbox_destroy (folder_t folder) |
163 | static int | 164 | static int |
164 | folder_mbox_open (folder_t folder, int flags) | 165 | folder_mbox_open (folder_t folder, int flags) |
165 | { | 166 | { |
166 | (void)(folder); | 167 | fmbox_t fmbox = folder->data; |
168 | if (flags & MU_STREAM_CREAT) | ||
169 | { | ||
170 | return (mkdir (fmbox->dirname, S_IRWXU) == 0) ? 0 : errno; | ||
171 | } | ||
167 | (void)(flags); | 172 | (void)(flags); |
168 | return 0; | 173 | return 0; |
169 | } | 174 | } | ... | ... |
-
Please register or sign in to post a comment