[openssh-commits] [openssh] 03/05: upstream: pass SSH_ASKPASS_PROMPT hint to y/n key confirm too

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Nov 13 10:15:54 AEDT 2019


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 4671211068441519011ac0e38c588317f4157ba1
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Tue Nov 12 22:35:02 2019 +0000

    upstream: pass SSH_ASKPASS_PROMPT hint to y/n key confirm too
    
    OpenBSD-Commit-ID: 08d46712e5e5f1bad0aea68e7717b7bec1ab8959
---
 readpass.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/readpass.c b/readpass.c
index 33fc03bb..b3e79903 100644
--- a/readpass.c
+++ b/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.55 2019/11/12 22:34:20 djm Exp $ */
+/* $OpenBSD: readpass.c,v 1.56 2019/11/12 22:35:02 djm Exp $ */
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
  *
@@ -75,6 +75,7 @@ ssh_askpass(char *askpass, const char *msg)
 		close(p[0]);
 		if (dup2(p[1], STDOUT_FILENO) == -1)
 			fatal("ssh_askpass: dup2: %s", strerror(errno));
+		setenv("SSH_ASKPASS_PROMPT", "confirm", 1); /* hint to UI */
 		execlp(askpass, askpass, msg, (char *)NULL);
 		fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno));
 	}

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list