prevent GetDataDir() from returning an empty path #1954

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:fix_datadir changing 1 files +8 −8
  1. Diapolo commented at 1:28 PM on October 24, 2012: none
    • if -datadir= is no directory don't return an empty path, but instead create / use the default data dir
    • check for existance of the final datadir, before trying to create it

    This should fix #1950.

  2. prevent GetDataDir() from returning an empty path
    - if -datadir= is no directory don't return an empty path, but instead
      create / use the default data dir
    - check for existance of the final datadir, before trying to create it
    3215150c9f
  3. sipa commented at 1:34 PM on October 24, 2012: member

    If a -datadir is specified and there's a problem with it, you want to get an error, not a default.

  4. Diapolo commented at 1:47 PM on October 24, 2012: none

    Well that is indeed also true but just leads to the command-line parsing discussion and silent errors. Perhaps I missunderstood what is causing the crash ... it was bitcoind and seems to be caused by the Shutdown() call. I guess there is no need for this patch then ^^, sorry.

  5. Diapolo closed this on Oct 24, 2012

  6. KolbyML referenced this in commit 676f6a79bf on Dec 5, 2020
  7. DrahtBot 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: 2026-04-16 21:16 UTC

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