summaryrefslogtreecommitdiff
path: root/readpass.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:24:51 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:24:51 +1100
commit85830d1dc0b4728f26596ee1e1c901cd1ddd24e5 (patch)
tree1555460de9757febb1a028ab258e87ea8c48c69c /readpass.c
parenta5ebe0c39d30ce6c22bf152c638ea753c531ecb2 (diff)
- markus@cvs.openbsd.org 2002/01/11 23:02:18
[readpass.c] use _PATH_TTY
Diffstat (limited to 'readpass.c')
-rw-r--r--readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c
index 7e13828b7..c3cfe1dac 100644
--- a/readpass.c
+++ b/readpass.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#include "includes.h" 34#include "includes.h"
35RCSID("$OpenBSD: readpass.c,v 1.24 2001/12/21 08:53:45 djm Exp $"); 35RCSID("$OpenBSD: readpass.c,v 1.25 2002/01/11 23:02:18 markus Exp $");
36 36
37#include "xmalloc.h" 37#include "xmalloc.h"
38#include "readpass.h" 38#include "readpass.h"
@@ -112,7 +112,7 @@ read_passphrase(const char *prompt, int flags)
112 use_askpass = 1; 112 use_askpass = 1;
113 } else { 113 } else {
114 rppflags |= RPP_REQUIRE_TTY; 114 rppflags |= RPP_REQUIRE_TTY;
115 ttyfd = open("/dev/tty", O_RDWR); 115 ttyfd = open(_PATH_TTY, O_RDWR);
116 if (ttyfd >= 0) 116 if (ttyfd >= 0)
117 close(ttyfd); 117 close(ttyfd);
118 else 118 else