aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io/FileReader.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-05 23:13:35 +0100
committerMax Kellermann <max@duempel.org>2015-01-05 23:13:35 +0100
commit81df45a893e8ac459ce10f0514058003027c0830 (patch)
treea2e0306a1a4bdb9bf16acb462607b6ff8bbfa401 /src/fs/io/FileReader.cxx
parentc1f0708a5d305fa713943c71f6d251466f73dadb (diff)
downloadmpd-81df45a893e8ac459ce10f0514058003027c0830.tar.gz
mpd-81df45a893e8ac459ce10f0514058003027c0830.tar.xz
mpd-81df45a893e8ac459ce10f0514058003027c0830.zip
fs/io/File{Reader,OutputStream}: use OpenFile()
Diffstat (limited to 'src/fs/io/FileReader.cxx')
-rw-r--r--src/fs/io/FileReader.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/io/FileReader.cxx b/src/fs/io/FileReader.cxx
index fa8bf2f0b..01ffe95f2 100644
--- a/src/fs/io/FileReader.cxx
+++ b/src/fs/io/FileReader.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "FileReader.hxx"
-#include "system/fd_util.h"
+#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
#ifdef WIN32
@@ -64,9 +64,9 @@ FileReader::Close()
FileReader::FileReader(Path _path, Error &error)
:path(_path),
- fd(open_cloexec(path.c_str(),
- O_RDONLY,
- 0))
+ fd(OpenFile(path,
+ O_RDONLY,
+ 0))
{
if (fd < 0)
error.FormatErrno("Failed to open %s", path.c_str());