From 3b53f81b5a97961276d6b81e110cefc74d275b12 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Dec 2015 19:21:34 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- info/libpassphrase.texinfo | 1 + src/test.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/info/libpassphrase.texinfo b/info/libpassphrase.texinfo index 7d46aaa..9fbb14a 100644 --- a/info/libpassphrase.texinfo +++ b/info/libpassphrase.texinfo @@ -256,6 +256,7 @@ int main(int argc, char** argv) @{ /* Something went wrong, print what and exit */ perror(*argv); + passphrase_reenable_echo1(fd); close(fd); return 1; @} diff --git a/src/test.c b/src/test.c index a962bd5..c4c1342 100644 --- a/src/test.c +++ b/src/test.c @@ -58,6 +58,7 @@ int main(int argc, char** argv) { /* Something went wrong, print what and exit */ perror(*argv); + passphrase_reenable_echo1(fd); close(fd); return 1; } @@ -70,7 +71,7 @@ int main(int argc, char** argv) free(passphrase); /* Stop hiding user input */ - passphrase_reenable_echo1(0); + passphrase_reenable_echo1(fd); /* End of program */ close(fd); -- cgit v1.2.3-70-g09d2