# HG changeset patch # User Paul Fisher # Date 1445743996 14400 # Node ID 10613f0f473732fa56703bd8450ddb2e5c1f752f # Parent 882f913f4e89e208dd6860bdf3db810ff125f5ec Read from fd3, not stdin. diff -r 882f913f4e89 -r 10613f0f4737 multipass-checkpassword.go --- 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)