diff multipass-checkpassword.go @ 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 4db389f948c9
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)