diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:24:51 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:24:51 +1100 |
commit | 85830d1dc0b4728f26596ee1e1c901cd1ddd24e5 (patch) | |
tree | 1555460de9757febb1a028ab258e87ea8c48c69c /readpass.c | |
parent | a5ebe0c39d30ce6c22bf152c638ea753c531ecb2 (diff) | |
download | openssh-git-85830d1dc0b4728f26596ee1e1c901cd1ddd24e5.tar.gz |
- markus@cvs.openbsd.org 2002/01/11 23:02:18
[readpass.c]
use _PATH_TTY
Diffstat (limited to 'readpass.c')
-rw-r--r-- | readpass.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 "xmalloc.h" #include "readpass.h" @@ -112,7 +112,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 |