mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
unbreak fatfs
This commit is contained in:
1 parent
02bdbb9ed6
commit
304ea2a649
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -50,9 +50,9 @@ static void *ff_open(const char *path, int flags) {
|
||||
if (flags & MG_FS_WRITE) {
|
||||
mode |= FA_WRITE;
|
||||
if (flags & MG_FS_EXCL) {
|
||||
mode |= FA_OPEN_ALWAYS | FA_OPEN_APPEND;
|
||||
} else {
|
||||
mode |= FA_CREATE_NEW;
|
||||
} else {
|
||||
mode |= FA_OPEN_ALWAYS | FA_OPEN_APPEND;
|
||||
}
|
||||
}
|
||||
if ((fp = mg_calloc(1, sizeof(*fp))) != NULL &&
|
||||
|
||||
Reference in new issue
Block a user