AP_Filesystem: correct file open flags for append

This commit is contained in:
Pierre Kancir 2021-08-11 00:08:48 +02:00 committed by Andrew Tridgell
parent 8da8b34b49
commit c19391d540

View File

@ -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+" )) { if (modecmp(mode,"a+") || modecmp(mode, "a+b" ) || modecmp(mode, "ab+" )) {
flag = O_RDWR | O_CREAT | O_APPEND; flag = O_RDWR | O_CREAT | O_APPEND;
return -1; return flag;
} }
return -1; return -1;
} }