ExcludeList.cxx: use FOpen
This commit is contained in:
parent
9399b0ea52
commit
227eca7d28
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user