From f1738c2aa659b361cfb14387108b934b79e166bb Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 28 Jun 2020 06:15:50 -0700 Subject: [PATCH] avoid syscall --- core/poller/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/poller/commands.go b/core/poller/commands.go index 01846021..f891b64e 100644 --- a/core/poller/commands.go +++ b/core/poller/commands.go @@ -2,9 +2,9 @@ package poller import ( "fmt" + "os" "strconv" "strings" - "syscall" "golang.org/x/crypto/bcrypt" "golang.org/x/crypto/ssh/terminal" @@ -41,7 +41,7 @@ func (u *UnifiPoller) PrintPasswordHash() (err error) { if u.Flags.HashPW == "-" { fmt.Print("Enter Password: ") - pwd, err = terminal.ReadPassword(int(syscall.Stdin)) + pwd, err = terminal.ReadPassword(int(os.Stdin.Fd())) if err != nil { return err }