rpc: Prevent dumpwallet from overwriting files

Prevent arbitrary files from being overwritten. There have been reports
that users have overwritten wallet files this way. It may also avoid
other security issues.

Fixes #9934. Adds mention to release notes and adds a test.

Github-Pull: #9937
Rebased-From: 0cd9273fd9
This commit is contained in:
Wladimir J. van der Laan
2017-03-07 09:50:41 +01:00
committed by MarcoFalke
parent b6c0209aaf
commit a43be5bcdb
3 changed files with 19 additions and 3 deletions

View File

@@ -65,6 +65,9 @@ Notable changes
0.15.1 Change log
=================
- `dumpwallet` no longer allows overwriting files. This is a security measure
as well as prevents dangerous user mistakes.
Credits
=======