diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-05 19:21:34 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-05 19:21:34 +0100 |
commit | 3b53f81b5a97961276d6b81e110cefc74d275b12 (patch) | |
tree | 4da847cacf659978490b58cb2ab132403d30dc59 | |
parent | m (diff) | |
download | libpassphrase-3b53f81b5a97961276d6b81e110cefc74d275b12.tar.gz libpassphrase-3b53f81b5a97961276d6b81e110cefc74d275b12.tar.bz2 libpassphrase-3b53f81b5a97961276d6b81e110cefc74d275b12.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | info/libpassphrase.texinfo | 1 | ||||
-rw-r--r-- | src/test.c | 3 |
2 files changed, 3 insertions, 1 deletions
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; @} @@ -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); |