Fix #15240, see: #15240 (comment)
Fix #15745
Fix broken feature_config_args.py tests (disabled by MarcoFalke@fabe28a0cdcfa13e0e595a0905e3642a960d3077). All test are enabled now.
This PR is alternative to #13621.
User’s $HOME directory is not touched unnecessarily now.
To make reviewing easier only bitcoind code is modified (neither bitcoin-cli nor bitcoin-qt).
Refs:
- #15745 (comment) by laanwj
- #16220