[openssh-commits] [openssh] branch master updated: unbreak readpassphrase.c sync
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Sep 16 12:28:43 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new e3cb2b227 unbreak readpassphrase.c sync
e3cb2b227 is described below
commit e3cb2b2278c265072d6ba6f0adf30b5dec0fbcd8
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Sep 16 12:28:40 2026 +1000
unbreak readpassphrase.c sync
---
openbsd-compat/readpassphrase.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index a93380a8f..43b7128c1 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -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);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list