mirror of git://anongit.mindrot.org/openssh.git
- markus@cvs.openbsd.org 2002/01/11 23:02:18
[readpass.c] use _PATH_TTY
This commit is contained in:
parent
a5ebe0c39d
commit
85830d1dc0
|
@ -140,6 +140,9 @@
|
|||
- markus@cvs.openbsd.org 2002/01/11 20:14:11
|
||||
[auth2-chall.c auth-skey.c]
|
||||
use strlcpy not strlcat; mouring@
|
||||
- markus@cvs.openbsd.org 2002/01/11 23:02:18
|
||||
[readpass.c]
|
||||
use _PATH_TTY
|
||||
|
||||
|
||||
20020121
|
||||
|
@ -7288,4 +7291,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.1762 2002/01/22 12:24:33 djm Exp $
|
||||
$Id: ChangeLog,v 1.1763 2002/01/22 12:24:51 djm Exp $
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue