Wladimir J. van der Laan b278a43646 rpc: Write authcookie atomically
Use POSIX rename atomicity at the `bitcoind` side to create a working
cookie atomically:

- Write `.cookie.tmp`, close file
- Rename `.cookie.tmp` to `.cookie`

This avoids clients reading invalid/partial cookies as in #11129.

Github-Pull: #11131
Rebased-From: 82dd7195e1fb943f9cd45a48188f9678219c0206
2017-10-03 18:34:30 +02:00
..
2017-09-15 15:38:06 +02:00
2017-10-03 18:34:30 +02:00
2017-06-22 19:18:10 +03:00
2017-10-03 18:15:46 +02:00
2017-07-15 14:28:40 +02:00
2017-06-09 10:25:26 +02:00
2017-06-09 10:25:26 +02:00
2017-06-05 16:33:35 -04:00
2017-07-08 13:33:01 -07:00
2017-07-14 19:24:17 +00:00
2017-08-14 17:02:36 +02:00
2017-08-14 17:02:36 +02:00
2017-07-22 09:55:57 +02:00