diff options
Diffstat (limited to '')
-rw-r--r-- | src/system/FileDescriptor.cxx | 4 | ||||
-rw-r--r-- | src/system/FileDescriptor.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx index dd516a703..db258e107 100644 --- a/src/system/FileDescriptor.cxx +++ b/src/system/FileDescriptor.cxx @@ -58,9 +58,9 @@ #endif bool -FileDescriptor::Open(const char *pathname, int flags) +FileDescriptor::Open(const char *pathname, int flags, mode_t mode) { - fd = ::open(pathname, flags | O_NOCTTY | O_CLOEXEC); + fd = ::open(pathname, flags | O_NOCTTY | O_CLOEXEC, mode); return IsDefined(); } diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index 37657332b..673462389 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -90,7 +90,7 @@ public: return FileDescriptor(-1); } - bool Open(const char *pathname, int flags); + bool Open(const char *pathname, int flags, mode_t mode=0666); bool OpenReadOnly(const char *pathname); #ifndef WIN32 |