[0.21] wallet: Do not iterate a directory if having an error while accessing it #22255

pull luke-jr wants to merge 1 commits into bitcoin:0.21 from luke-jr:listwalletdir_iterate_inf-0.19 changing 1 files +6 −1
  1. luke-jr commented at 7:14 PM on June 15, 2021: member

    This change prevents infinite looping for, for example, system folders on Windows.

    Github-Pull: #21907 Rebased-From: 29c9e2c2d2015ade47ed4497926363dea3f9c59b

    Note: Trivial backport, but in a differently-named function in another file

  2. wallet: Do not iterate a directory if having an error while accessing it
    This change prevents infinite looping for, for example, system folders
    on Windows.
    
    Github-Pull: #21907
    Rebased-From: 29c9e2c2d2015ade47ed4497926363dea3f9c59b
    7b0b201d10
  3. DrahtBot added the label Backport on Jun 15, 2021
  4. MarcoFalke added this to the milestone 0.21.2 on Jun 16, 2021
  5. hebasto approved
  6. hebasto commented at 4:44 AM on June 28, 2021: member

    ACK 7b0b201d109b6240f114498fc1b94af9cb85f26e, I have reviewed the code and it looks OK, I agree it can be merged.

  7. fanquake commented at 2:16 AM on July 1, 2021: member

    @promag @meshcollider @sipsorcery test / backport check?

  8. MarcoFalke merged this on Jul 1, 2021
  9. MarcoFalke closed this on Jul 1, 2021

  10. MarcoFalke commented at 6:42 AM on July 1, 2021: member

    review ACK. Didn't test on Windows

  11. ComputerCraftr referenced this in commit 8ebd642212 on Aug 18, 2021
  12. tcharding referenced this in commit 433ac6fcef on Jul 22, 2022
  13. tcharding referenced this in commit 60a2417a8f on Aug 3, 2022
  14. DrahtBot locked this on Aug 18, 2022

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: 2026-04-13 21:14 UTC

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