mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
fs: consistently use fsbridge for fopen()
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#include <consensus/consensus.h>
|
||||
#include <core_io.h>
|
||||
#include <key_io.h>
|
||||
#include <fs.h>
|
||||
#include <policy/policy.h>
|
||||
#include <policy/rbf.h>
|
||||
#include <primitives/transaction.h>
|
||||
@ -158,7 +159,7 @@ static void RegisterLoad(const std::string& strInput)
|
||||
std::string key = strInput.substr(0, pos);
|
||||
std::string filename = strInput.substr(pos + 1, std::string::npos);
|
||||
|
||||
FILE *f = fopen(filename.c_str(), "r");
|
||||
FILE *f = fsbridge::fopen(filename.c_str(), "r");
|
||||
if (!f) {
|
||||
std::string strErr = "Cannot open file " + filename;
|
||||
throw std::runtime_error(strErr);
|
||||
|
Reference in New Issue
Block a user