File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,13 @@ static auto InitBlocksdirXorKey(const BlockManager::Options& opts)
1164
1164
xor_key_file >> xor_key;
1165
1165
} else {
1166
1166
// Create initial or missing xor key file
1167
- AutoFile xor_key_file{fsbridge::fopen (xor_key_path, " wbx" )};
1167
+ AutoFile xor_key_file{fsbridge::fopen (xor_key_path,
1168
+ #ifdef __MINGW64__
1169
+ " wb" // Temporary workaround for https://github.com/bitcoin/bitcoin/issues/30210
1170
+ #else
1171
+ " wbx"
1172
+ #endif
1173
+ )};
1168
1174
xor_key_file << xor_key;
1169
1175
}
1170
1176
// If the user disabled the key, it must be zero.
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ BOOST_AUTO_TEST_CASE(xor_file)
30
30
}
31
31
{
32
32
#ifdef __MINGW64__
33
- // Our usage of mingw-w64 and the msvcrt runtime does not support
34
- // the x modifier for the _wfopen().
33
+ // Temporary workaround for https://github.com/bitcoin/bitcoin/issues/30210
35
34
const char * mode = " wb" ;
36
35
#else
37
36
const char * mode = " wbx" ;
You can’t perform that action at this time.
0 commit comments