mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_Filesystem: correct file open flags for append
This commit is contained in:
parent
8da8b34b49
commit
c19391d540
@ -71,7 +71,7 @@ static int posix_fopen_modes_to_open(const char *mode)
|
||||
}
|
||||
if (modecmp(mode,"a+") || modecmp(mode, "a+b" ) || modecmp(mode, "ab+" )) {
|
||||
flag = O_RDWR | O_CREAT | O_APPEND;
|
||||
return -1;
|
||||
return flag;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user