aboutsummaryrefslogtreecommitdiff
path: root/src/ExcludeList.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ExcludeList.cxx')
-rw-r--r--src/ExcludeList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ExcludeList.cxx b/src/ExcludeList.cxx
index 50cdc1c0..0daa432d 100644
--- a/src/ExcludeList.cxx
+++ b/src/ExcludeList.cxx
@@ -25,16 +25,16 @@
#include "config.h"
#include "ExcludeList.hxx"
#include "fs/Path.hxx"
+#include "fs/FileSystem.hxx"
#include <assert.h>
#include <string.h>
-#include <stdio.h>
#include <errno.h>
bool
ExcludeList::LoadFile(const Path &path_fs)
{
- FILE *file = fopen(path_fs.c_str(), "r");
+ FILE *file = FOpen(path_fs, FOpenMode::ReadText);
if (file == NULL) {
if (errno != ENOENT) {
const char *msg = g_strerror(errno);