mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-03 19:41:55 +02:00
VFS: use O_APPEND flag of open() correctly
Closes https://github.com/espressif/esp-idf/pull/1455
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user