diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-02-17 12:29:22 +0100 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-02-17 12:29:41 +0100 |
commit | df0825046acc7cb496c47666e36af18118beb030 (patch) | |
tree | 50cea66b90f0bbbb877184f0086c3a6939b8e4d7 /src/qt/intro.cpp | |
parent | 97611921bed83ff4779cf4827bd0e51a321df4b5 (diff) | |
parent | dc01cbc538765f64326bca30952c83e3862d0d54 (diff) | |
download | bitcoin-df0825046acc7cb496c47666e36af18118beb030.tar.xz |
Merge bitcoin/bitcoin#24331: util: Revert back `MoveFileExW` call for MinGW-w64
dc01cbc538765f64326bca30952c83e3862d0d54 test: Add fs_tests/rename unit test (Hennadii Stepanov)
d4999d40b9bd04dc20111aaaa6ed2d3db1a5caf9 util: Revert back MoveFileExW call for MinGW-w64 (Hennadii Stepanov)
Pull request description:
Unfortunately, bitcoin/bitcoin#24308 introduced a [regression](https://github.com/bitcoin/bitcoin/pull/24308#issuecomment-1037259386) for mingw builds.
The root of the problem is a broken implementation of [`std::filesystem::rename`](https://en.cppreference.com/w/cpp/filesystem/rename). In particular, the expected behavior
> If `old_p` is a non-directory file, then `new_p` must be ... existing non-directory file: `new_p` _is first deleted_...
fails with the "File exists" error.
This PR reverts back the `MoveFileExW` call, and adds the [suggested](https://github.com/bitcoin/bitcoin/pull/24308#pullrequestreview-878832906) unit test.
ACKs for top commit:
vasild:
ACK dc01cbc538765f64326bca30952c83e3862d0d54
Tree-SHA512: c8e5a98844cfa32bec0ad67a1aaa58fe2efd0c5474d3e83490211985b110f83245758a742dcaa0a933a192ab66a7f11807e0c53ae69260b7dd02fc99f6d03849
Diffstat (limited to 'src/qt/intro.cpp')
0 files changed, 0 insertions, 0 deletions