AsyncIOPosix: Add mode_t argument to open

This commit is contained in:
Luke Street 2020-06-24 12:05:55 -04:00
parent 4891a95688
commit b63f7c6401
1 changed files with 1 additions and 1 deletions

View File

@ -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() {