diff multipass-checkpassword.go @ 3:ec4ded022025

Fix checkpassword to actually build.
author Paul Fisher <paul@pfish.zone>
date Sat, 24 Oct 2015 22:36:33 -0400
parents faf4aad86fc9
children b8545eea86b4
line wrap: on
line diff
--- a/multipass-checkpassword.go	Sat Oct 24 22:34:07 2015 -0400
+++ b/multipass-checkpassword.go	Sat Oct 24 22:36:33 2015 -0400
@@ -2,7 +2,6 @@
 
 import (
 	"bufio"
-	"fmt"
 	"os"
 	"os/user"
 	"syscall"
@@ -16,7 +15,7 @@
 )
 
 func main() {
-	infile = os.NewFile(3, "")
+	infile := os.NewFile(3, "")
 	reader := bufio.NewReader(os.Stdin)
 	username, err := reader.ReadString('\n')
 	if err != nil {
@@ -45,7 +44,7 @@
 	os.Setenv("userdb_gid", user.Gid)
 	os.Setenv("EXTRA", "userdb_uid userdb_gid")
 	environ := []string{
-		"USER=" + user.Username
+		"USER=" + user.Username,
 		"userdb_uid=" + user.Uid,
 		"userdb_gid=" + user.Gid,
 		"HOME=" + user.HomeDir,