diff --git a/src/ExcludeList.cxx b/src/ExcludeList.cxx index 50cdc1c0e..0daa432dd 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 #include -#include #include 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);