VFS: use O_APPEND flag of open() correctly

Closes https://github.com/espressif/esp-idf/pull/1455
This commit is contained in:
Roland Dobai
2018-05-10 14:26:47 +02:00
parent 4903fd0951
commit 733ff15719
3 changed files with 142 additions and 2 deletions
+2 -1
View File
@@ -522,7 +522,8 @@ static int spiffs_mode_conv(int m)
res |= SPIFFS_O_CREAT | SPIFFS_O_EXCL;
} else if ((m & O_CREAT) && (m & O_TRUNC)) {
res |= SPIFFS_O_CREAT | SPIFFS_O_TRUNC;
} else if (m & O_APPEND) {
}
if (m & O_APPEND) {
res |= SPIFFS_O_CREAT | SPIFFS_O_APPEND;
}
return res;