提交 67a98b4d 编写于 作者: M Mislav Marohnić

[auth] Fix password prompt on Windows

It was wrong to just assume that stdin is "0" everywhere.

Followup to 7514fa2b

Fixes #2276
上级 63aee40e
......@@ -192,7 +192,7 @@ func (c *Config) scanLine() string {
}
func getPassword() (string, error) {
stdin := 0 // syscall.Stdin
stdin := int(syscall.Stdin)
initialTermState, err := terminal.GetState(stdin)
if err != nil {
return "", err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册