aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/FileDescriptor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-03 22:29:09 +0100
committerMax Kellermann <max@duempel.org>2015-03-03 22:29:09 +0100
commit5b48d597690bff2ecfccc71a66b9812e2bc98f03 (patch)
treedfd8d4d44ec79cfb1dbe7d77b3ec32e23c687d25 /src/system/FileDescriptor.cxx
parent4dec12fcfc95714d325985c1684fc984e36c6d2b (diff)
downloadmpd-5b48d597690bff2ecfccc71a66b9812e2bc98f03.tar.gz
mpd-5b48d597690bff2ecfccc71a66b9812e2bc98f03.tar.xz
mpd-5b48d597690bff2ecfccc71a66b9812e2bc98f03.zip
system/FileDescriptor: add "mode" parameter to Open()
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();
}