diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-17 07:51:11 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-17 07:51:11 +0000 |
commit | 22d77a6f56a5311ba39f628534957708f5f4344d (patch) | |
tree | f5502f6130e29d350d44830073cce2ae87535278 /usr.bin/openssl/s_client.c | |
parent | a0911b4bb1dfb68ba72046fe045f724a77d415a2 (diff) |
add "tty" for several subcommands of openssl
it is needed in order to let libssl UI_* function plays with echo on/off when
asking for password on terminal.
passwd subcommand needs additionnal "wpath cpath" in order to let it calls
fopen("/dev/tty", "w") (O_WRONLY with O_CREAT | O_TRUNC).
problem reported by several
with and ok doug@
Diffstat (limited to 'usr.bin/openssl/s_client.c')
-rw-r--r-- | usr.bin/openssl/s_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/openssl/s_client.c b/usr.bin/openssl/s_client.c index 63f30389c4b..6bc66ac5fb3 100644 --- a/usr.bin/openssl/s_client.c +++ b/usr.bin/openssl/s_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_client.c,v 1.21 2015/10/10 22:28:51 doug Exp $ */ +/* $OpenBSD: s_client.c,v 1.22 2015/10/17 07:51:10 semarie Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -365,7 +365,7 @@ s_client_main(int argc, char **argv) long socket_mtu = 0; if (single_execution) { - if (pledge("stdio inet rpath wpath cpath", NULL) == -1) + if (pledge("stdio inet rpath wpath cpath tty", NULL) == -1) perror("pledge"); } |