summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 23:02:19 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 23:02:19 +0000
commit80bb158d4c815b18eee8d585e3c3c70a0e5f98a2 (patch)
tree546a906aba45433a174baf200b55c71ea3fd31d4 /usr.bin
parent257a74742c93eed9eaf602db9ca884a57d226d83 (diff)
use _PATH_TTY
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 090235af1d4..115fc54dd53 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -32,7 +32,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readpass.c,v 1.24 2001/12/21 08:53:45 djm Exp $");
+RCSID("$OpenBSD: readpass.c,v 1.25 2002/01/11 23:02:18 markus Exp $");
#include <readpassphrase.h>
@@ -114,7 +114,7 @@ read_passphrase(const char *prompt, int flags)
use_askpass = 1;
} else {
rppflags |= RPP_REQUIRE_TTY;
- ttyfd = open("/dev/tty", O_RDWR);
+ ttyfd = open(_PATH_TTY, O_RDWR);
if (ttyfd >= 0)
close(ttyfd);
else