projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for new UI functions under Win32.
[openssl.git]
/
crypto
/
ui
/
ui_openssl.c
diff --git
a/crypto/ui/ui_openssl.c
b/crypto/ui/ui_openssl.c
index 3555ae6275c8f906b20072570962e0c774abddc7..abf223b5d154a1f765add510e304d0b66d8f89c8 100644
(file)
--- a/
crypto/ui/ui_openssl.c
+++ b/
crypto/ui/ui_openssl.c
@@
-430,7
+430,10
@@
static int open_console(UI *ui)
is_a_tty = 1;
#ifdef OPENSSL_SYS_MSDOS
is_a_tty = 1;
#ifdef OPENSSL_SYS_MSDOS
- if ((tty=fopen("con","w+")) == NULL)
+ /* For some bizarre reason this call to fopen() on Windows
+ * fails if the mode is "w+" or "r+", whereas "w" works fine.
+ */
+ if ((tty=fopen("con","w")) == NULL)
tty=stdin;
#elif defined(OPENSSL_SYS_MACINTOSH_CLASSIC)
tty=stdin;
tty=stdin;
#elif defined(OPENSSL_SYS_MACINTOSH_CLASSIC)
tty=stdin;