mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-24 12:54:07 +02:00
This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up. Noticed by Evan Klitzke, came up in discussion here: https://github.com/bitcoin/bitcoin/pull/10880#discussion_r128460722