projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c0d30
)
For MSDOS, the tty filename still is "con", not "/dev/tty" ...
author
Bodo Möller
<bodo@openssl.org>
Mon, 11 Jun 2001 15:21:33 +0000
(15:21 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Mon, 11 Jun 2001 15:21:33 +0000
(15:21 +0000)
crypto/ui/ui_openssl.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_openssl.c
b/crypto/ui/ui_openssl.c
index 63dc3713e45d778505470e5e5df54c91e2592718..bb66291ad5906f089701eeb2a0d63fb41c3532f9 100644
(file)
--- a/
crypto/ui/ui_openssl.c
+++ b/
crypto/ui/ui_openssl.c
@@
-436,9
+436,14
@@
static int open_console(UI *ui)
tty_in=stdin;
tty_out=stderr;
#else
- if ((tty_in=fopen("/dev/tty","r")) == NULL)
+# ifdef OPENSSL_SYS_MSDOS
+# define DEV_TTY "con"
+# else
+# define DEV_TTY "/dev/tty"
+# endif
+ if ((tty_in=fopen(DEV_TTY,"r")) == NULL)
tty_in=stdin;
- if ((tty_out=fopen(
"/dev/tty"
,"w")) == NULL)
+ if ((tty_out=fopen(
DEV_TTY
,"w")) == NULL)
tty_out=stderr;
#endif