We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687e655 commit 5b946edCopy full SHA for 5b946ed
src/util/system.cpp
@@ -519,12 +519,12 @@ bool ArgsManager::InitSettings(std::string& error)
519
520
bool ArgsManager::GetSettingsPath(fs::path* filepath, bool temp) const
521
{
522
- if (IsArgNegated("-settings")) {
+ fs::path settings = GetPathArg("-settings", fs::path{BITCOIN_SETTINGS_FILENAME});
523
+ if (settings.empty()) {
524
return false;
525
}
526
if (filepath) {
- std::string settings = GetArg("-settings", BITCOIN_SETTINGS_FILENAME);
527
- *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), fs::PathFromString(temp ? settings + ".tmp" : settings));
+ *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), temp ? settings + ".tmp" : settings);
528
529
return true;
530
0 commit comments