diff options
author | crupest <crupest@outlook.com> | 2023-10-15 23:45:46 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-15 23:45:46 +0800 |
commit | 9b818f45345b41854bca1022daddcf19304030fc (patch) | |
tree | 9c20e48b2e11214d4861aa56e96c647c032b4163 /include/cru | |
parent | 5d077a761fdb0873d593f7d3b03922bef2efe79a (diff) | |
download | cru-9b818f45345b41854bca1022daddcf19304030fc.tar.gz cru-9b818f45345b41854bca1022daddcf19304030fc.tar.bz2 cru-9b818f45345b41854bca1022daddcf19304030fc.zip |
Fix unix file stream creation mode and readable check bug.
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/common/platform/unix/UnixFileStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/common/platform/unix/UnixFileStream.h b/include/cru/common/platform/unix/UnixFileStream.h index 4b86649e..06b45d08 100644 --- a/include/cru/common/platform/unix/UnixFileStream.h +++ b/include/cru/common/platform/unix/UnixFileStream.h @@ -12,7 +12,7 @@ class UnixFileStream : public io::Stream { static constexpr auto kLogTag = u"cru::platform::unix::UnixFileStream"; public: - UnixFileStream(const char* path, int oflag); + UnixFileStream(const char* path, int oflag, mode_t mode = 0660); UnixFileStream(int fd, bool can_seek, bool can_read, bool can_write, bool auto_close); |