aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/FileDescriptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/system/FileDescriptor.cxx4
1 files changed, 2 insertions, 2 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();
}