From 5ccbf0d2251e0bebaebc44c3b9d0089a6b9af91a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 24 Jun 2020 12:05:55 -0400 Subject: [PATCH] AsyncIOPosix: Add mode_t argument to open --- lib/kabufuda/AsyncIOPosix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kabufuda/AsyncIOPosix.cpp b/lib/kabufuda/AsyncIOPosix.cpp index 3ebd01e..f0d874c 100644 --- a/lib/kabufuda/AsyncIOPosix.cpp +++ b/lib/kabufuda/AsyncIOPosix.cpp @@ -7,7 +7,7 @@ namespace kabufuda { AsyncIO::AsyncIO(SystemStringView filename, bool truncate) { - m_fd = open(filename.data(), O_RDWR | O_CREAT | (truncate ? O_TRUNC : 0)); + m_fd = open(filename.data(), O_RDWR | O_CREAT | (truncate ? O_TRUNC : 0), 0644); } AsyncIO::~AsyncIO() {