Mercurial > go > multipass
changeset 6:10613f0f4737
Read from fd3, not stdin.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 24 Oct 2015 23:33:16 -0400 |
parents | 882f913f4e89 |
children | 406d3cd76739 |
files | multipass-checkpassword.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/multipass-checkpassword.go Sat Oct 24 23:19:20 2015 -0400 +++ b/multipass-checkpassword.go Sat Oct 24 23:33:16 2015 -0400 @@ -16,7 +16,7 @@ func main() { infile := os.NewFile(3, "") - reader := bufio.NewReader(os.Stdin) + reader := bufio.NewReader(infile) username, err := reader.ReadString(0) if err != nil { os.Exit(InternalError)