From c957c8cacb2018a80b3ccf9bc07f2a3cb9908f67 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sat, 12 Feb 2022 07:54:28 +0200 Subject: [PATCH] Read only single line with `--wallet-password-stdin` --- jmclient/jmclient/wallet_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index ff4356f..7ab805e 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -1505,7 +1505,7 @@ def get_wallet_path(file_name, wallet_dir=None): def read_password_stdin(): - return sys.stdin.read().encode('utf-8') + return sys.stdin.readline().replace('\n','').encode('utf-8') def wallet_tool_main(wallet_root_path):