aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/read_file.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.posix/read_file.ccm')
-rw-r--r--nihil.posix/read_file.ccm2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihil.posix/read_file.ccm b/nihil.posix/read_file.ccm
index be9e102..3b4fd5b 100644
--- a/nihil.posix/read_file.ccm
+++ b/nihil.posix/read_file.ccm
@@ -32,7 +32,7 @@ read_file(std::filesystem::path const &filename,
std::output_iterator<char> auto &&iter)
-> std::expected<void, error>
{
- auto file = co_await open(filename, O_RDONLY);
+ auto file = co_await open(filename, open_read);
auto constexpr bufsize = std::size_t{1024};
auto buffer = std::array<char, bufsize>{};