mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
Fix open append mode for file_posix
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
* Fix open append mode for file_posix.
|
||||||
* Fix open append mode for file_win32.
|
* Fix open append mode for file_win32.
|
||||||
* Add tests for file open in append mode.
|
* Add tests for file open in append mode.
|
||||||
* Fix file open with append/append_existing flag on Windows.
|
* Fix file open with append/append_existing flag on Windows.
|
||||||
|
@@ -165,7 +165,7 @@ open(char const* path, file_mode mode, error_code& ec)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case file_mode::append:
|
case file_mode::append:
|
||||||
f = O_WRONLY | O_CREAT | O_TRUNC;
|
f = O_WRONLY | O_CREAT | O_APPEND;
|
||||||
#if BOOST_BEAST_USE_POSIX_FADVISE
|
#if BOOST_BEAST_USE_POSIX_FADVISE
|
||||||
advise = POSIX_FADV_SEQUENTIAL;
|
advise = POSIX_FADV_SEQUENTIAL;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user