Commit 227eca7d authored by Denis Krjuchkov's avatar Denis Krjuchkov

ExcludeList.cxx: use FOpen

parent 9399b0ea
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment