Skip to content

Commit

Permalink
Don't rely on syscall for password prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
arashpayan committed Nov 20, 2023
1 parent 207cf32 commit 4557339
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/samba/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"
"path"
"strings"
"syscall"

"github.com/urfave/cli/v2"
"golang.org/x/term"
Expand Down Expand Up @@ -50,7 +49,7 @@ func promptForPassword() (string, error) {
return "", err
}

b, err := term.ReadPassword(syscall.Stdin)
b, err := term.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 4557339

Please sign in to comment.