Fix file open with append_existing flag on posix

fixes #2011
closes #2027
This commit is contained in:
Richard Hodges committed 2020-08-28 13:26:22 +02:00
1 parent ccd0f8822a
commit 982120c73e
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -172,7 +172,7 @@ open(char const* path, file_mode mode, error_code& ec)
break;
case file_mode::append_existing:
f = O_WRONLY;
f = O_WRONLY | O_APPEND;
#if BOOST_BEAST_USE_POSIX_FADVISE
advise = POSIX_FADV_SEQUENTIAL;
#endif