Backupwallet RPC call destroyed wallet if target equals the source wallet file #11375

issue tomasvdw openend this issue on September 20, 2017
  1. tomasvdw commented at 10:12 pm on September 20, 2017: contributor

    When the target for backupwallet is the source wallet file or directory, the wallet file is cleared to zero length

    Reproduce

    bitcoin-cli backupwallet ~/.bitcoin/

    Expected behaviour

    Command should fail

    Actual behaviour

    Wallet is destroyed.

    Reported here https://www.reddit.com/r/btc/comments/719kz3/just_lost_4bch_backing_up_my_walletdat_file/

    Fix proposed in #11376

  2. fanquake added the label RPC/REST/ZMQ on Sep 20, 2017
  3. fanquake added the label Wallet on Sep 20, 2017
  4. MarcoFalke closed this on Nov 1, 2017

  5. MarcoFalke referenced this in commit 1b8c88451b on Nov 1, 2017
  6. codablock referenced this in commit e0b1792080 on Sep 26, 2019
  7. codablock referenced this in commit b6116b20c0 on Sep 29, 2019
  8. barrystyle referenced this in commit e42978fd46 on Jan 22, 2020
  9. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me