mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-11-06 05:16:43 +00:00
unbreak readpassphrase.c sync
This commit is contained in:
1 file changed
+4
-1
@@ -91,8 +91,11 @@ restart:
|
||||
* Read and write to /dev/tty if available. If not, read from
|
||||
* stdin and write to stderr unless a tty is required.
|
||||
*/
|
||||
#ifndef O_CLOEXEC
|
||||
# define O_CLOEXEC 0
|
||||
#endif
|
||||
if ((flags & RPP_STDIN) ||
|
||||
(input = output = __pledge_open(_PATH_TTY, O_RDWR | O_CLOEXEC)) == -1) {
|
||||
(input = output = open(_PATH_TTY, O_RDWR | O_CLOEXEC)) == -1) {
|
||||
if (flags & RPP_REQUIRE_TTY) {
|
||||
errno = ENOTTY;
|
||||
return(NULL);
|
||||
|
||||
Reference in new issue
Block a user