Page MenuHomePhabricator

D8108.diff
No OneTemporary

D8108.diff

diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp
--- a/src/bitcoin-cli.cpp
+++ b/src/bitcoin-cli.cpp
@@ -539,6 +539,9 @@
throw std::runtime_error("-stdinrpcpass specified but failed "
"to read from standard input");
}
+ if (StdinTerminal()) {
+ fputc('\n', stdout);
+ }
gArgs.ForceSetArg("-rpcpassword", rpcPass);
}
std::vector<std::string> args =
@@ -560,6 +563,9 @@
throw std::runtime_error("-stdinwalletpassphrase specified but "
"failed to read from standard input");
}
+ if (StdinTerminal()) {
+ fputc('\n', stdout);
+ }
args.insert(args.begin() + 1, walletPass);
}
if (gArgs.GetBoolArg("-stdin", false)) {
@@ -568,6 +574,9 @@
while (std::getline(std::cin, line)) {
args.push_back(line);
}
+ if (StdinTerminal()) {
+ fputc('\n', stdout);
+ }
}
std::unique_ptr<BaseRequestHandler> rh;
std::string method;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 11:27 (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187602
Default Alt Text
D8108.diff (1 KB)

Event Timeline