HomePhabricator

util: Avoid buggy std::filesystem:::create_directories() call

Description

util: Avoid buggy std::filesystem:::create_directories() call

Summary:
Compiled with some libstdc++ versions (e.g., on Ubuntu 20.04, Debian 11) std::filesystem:::create_directories() call fails to handle symbol links
properly.

This is a backport of core#24266

Note that this fixes also a redundant "/" being added to path when BaseParams().DataDir().empty(), so this is a dependency for D13730

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13735

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Feb 4 2022, 20:53
PiRKCommitted on Apr 18 2023, 18:52
PiRKPushed on Apr 18 2023, 18:52
Reviewer
Restricted Project
Differential Revision
D13735: util: Avoid buggy std::filesystem:::create_directories() call
Parents
rABC0779ad83448f: [alias spec] Remove comment about refunds
Branches
Unknown
Tags
Unknown