diff options
| author | deraadt <> | 2026-03-10 05:28:31 +0000 |
|---|---|---|
| committer | deraadt <> | 2026-03-10 05:28:31 +0000 |
| commit | 81f9804b6e846ae3679bbb8c6bb3aee2a1dc70ea (patch) | |
| tree | ea330209ad756f0b5d235f03df7d97e33350496e /src/lib | |
| parent | 71927d7dd981f6e0a9705dd2ddf5bc60abfbaeab (diff) | |
| download | openbsd-81f9804b6e846ae3679bbb8c6bb3aee2a1dc70ea.tar.gz openbsd-81f9804b6e846ae3679bbb8c6bb3aee2a1dc70ea.tar.bz2 openbsd-81f9804b6e846ae3679bbb8c6bb3aee2a1dc70ea.zip | |
use the "e" flag with fopen() for O_CLOEXEC; ok tb
Diffstat (limited to 'src/lib')
| -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) { |
