From 5b48d597690bff2ecfccc71a66b9812e2bc98f03 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Mar 2015 22:29:09 +0100 Subject: system/FileDescriptor: add "mode" parameter to Open() --- src/system/FileDescriptor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system/FileDescriptor.cxx') 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(); } -- cgit v1.2.3