From 227eca7d28805122f52b20117e6747cc740a36f8 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Sat, 2 Feb 2013 20:20:24 +0600 Subject: [PATCH] ExcludeList.cxx: use FOpen --- src/ExcludeList.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);