ExcludeList.cxx: use FOpen
This commit is contained in:
parent
9399b0ea52
commit
227eca7d28
@ -25,16 +25,16 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "ExcludeList.hxx"
|
#include "ExcludeList.hxx"
|
||||||
#include "fs/Path.hxx"
|
#include "fs/Path.hxx"
|
||||||
|
#include "fs/FileSystem.hxx"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ExcludeList::LoadFile(const Path &path_fs)
|
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 (file == NULL) {
|
||||||
if (errno != ENOENT) {
|
if (errno != ENOENT) {
|
||||||
const char *msg = g_strerror(errno);
|
const char *msg = g_strerror(errno);
|
||||||
|
Loading…
Reference in New Issue
Block a user