Util: don't overwrite existing but unreadable settings.json #22590

pull tylerchambers wants to merge 0 commits into bitcoin:master from tylerchambers:fix-22571 changing 0 files +0 −0
  1. tylerchambers commented at 5:27 PM on July 30, 2021: contributor

    If settings.json exists, but cannot be read, we should error saying the permissions are incorrect, instead of immediately overwriting the file.

    Fixes #22571

  2. jarolrod commented at 5:32 PM on July 30, 2021: member

    Please squash your commits. For guidance on squashing, see: CONTRIBUTING.md#squashing-commits

    additionally the commit message should read: util: don't overwrite existing settings.json or somthing similar, however you deem appropriate.

  3. tylerchambers renamed this:
    Don't overwrite settings.json if it exists but can't be read.
    Util: don't overwrite existing but unreadable settings.json
    on Jul 30, 2021
  4. tylerchambers closed this on Jul 30, 2021

  5. tylerchambers commented at 5:41 PM on July 30, 2021: contributor

    ... I'm not sure what I just did here. I branched from master on my fork, which was out of date, and I was trying to fix that. hopefully nothing broke?

    Will try again.

  6. DrahtBot locked this on Aug 16, 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-29 03:14 UTC

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