aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/read_pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/des/read_pwd.c')
-rw-r--r--crypto/des/read_pwd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c
index 789493f0c96..fa2d67da643 100644
--- a/crypto/des/read_pwd.c
+++ b/crypto/des/read_pwd.c
@@ -265,15 +265,13 @@ int des_read_pw(char *buf, char *buff, int size, const char *prompt,
is_a_tty=1;
tty=NULL;
-#ifdef MSDOS
- if ((tty=fopen("con","r")) == NULL)
- tty=stdin;
-#elif defined(MAC_OS_pre_X)
- tty=stdin;
-#else
+#ifndef MSDOS
if ((tty=fopen("/dev/tty","r")) == NULL)
tty=stdin;
-#endif
+#else /* MSDOS */
+ if ((tty=fopen("con","r")) == NULL)
+ tty=stdin;
+#endif /* MSDOS */
#if defined(TTY_get) && !defined(VMS)
if (TTY_get(fileno(tty),&tty_orig) == -1)