Merge #11747: Fix: Open files read only if requested
Summary:
PR11747 backport https://github.com/bitcoin/bitcoin/pull/11747
e1a8ec5 Fix: Open files read only if requested (Andras Elso)
Note: the PR was closed and an alternate version was merged, see discussion
therein.
Test Plan: make check
Reviewers: deadalnix, Fabien, jasonbcox, #bitcoin_abc
Reviewed By: deadalnix, Fabien, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D3579