2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-31 02:48:30 +00:00
restic/changelog
Peter Schultz 5715517e29 Fix reading password from stdin
Reading the password from non-terminal stdin used io.ReadFull with a
byte slice of length 1000.

We are now using a Scanner to read one line of input, independent of its
length.

Additionally, if stdin is not a terminal, the password is read only
once instead of twice (in an effort to detect typos).

Fixes #2203

Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com>
2019-04-15 10:05:49 +02:00
..
2018-04-30 21:41:30 +02:00
2018-06-10 11:29:57 +02:00
2018-03-24 17:31:21 +01:00
2018-03-24 17:31:21 +01:00