diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index 3ace3a4e75..26d3e44f69 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ui_openssl.c,v 1.29 2025/03/09 15:25:53 tb Exp $ */ | 1 | /* $OpenBSD: ui_openssl.c,v 1.30 2026/03/10 05:28:31 deraadt Exp $ */ |
| 2 | /* Written by Richard Levitte (richard@levitte.org) and others | 2 | /* Written by Richard Levitte (richard@levitte.org) and others |
| 3 | * for the OpenSSL project 2001. | 3 | * for the OpenSSL project 2001. |
| 4 | */ | 4 | */ |
| @@ -300,9 +300,9 @@ open_console(UI *ui) | |||
| 300 | is_a_tty = 1; | 300 | is_a_tty = 1; |
| 301 | 301 | ||
| 302 | #define DEV_TTY "/dev/tty" | 302 | #define DEV_TTY "/dev/tty" |
| 303 | if ((tty_in = fopen(DEV_TTY, "r")) == NULL) | 303 | if ((tty_in = fopen(DEV_TTY, "re")) == NULL) |
| 304 | tty_in = stdin; | 304 | tty_in = stdin; |
| 305 | if ((tty_out = fopen(DEV_TTY, "w")) == NULL) | 305 | if ((tty_out = fopen(DEV_TTY, "we")) == NULL) |
| 306 | tty_out = stderr; | 306 | tty_out = stderr; |
| 307 | 307 | ||
| 308 | if (tcgetattr(fileno(tty_in), &tty_orig) == -1) { | 308 | if (tcgetattr(fileno(tty_in), &tty_orig) == -1) { |
