From 3678ec9ad86a23cefc65a6208984ec5d0cb021c4 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 31 Jul 2018 20:21:18 +0200 Subject: [PATCH] Print message for password being read from stdin Closes #1911 --- cmd/restic/global.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 96d1f9e36..5d54fbd7b 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -293,6 +293,7 @@ func ReadPassword(opts GlobalOptions, prompt string) (string, error) { password, err = readPasswordTerminal(os.Stdin, os.Stderr, prompt) } else { password, err = readPassword(os.Stdin) + Verbosef("read password from stdin\n") } if err != nil {