search for: altyes

Displaying 1 result from an estimated 1 matches for "altyes".

Did you mean: allyes
2002 Feb 13
0
[Bug 112] New: Using host key fingerprint instead of "yes"
...d/sshconnect.c openssh-3.0.2p1/sshconnect.c --- openssh-3.0.2p1.old/sshconnect.c Wed Oct 10 07:07:45 2001 +++ openssh-3.0.2p1/sshconnect.c Wed Feb 6 02:19:58 2002 @@ -487,7 +487,7 @@ /* defaults to 'no' */ static int -confirm(const char *prompt) +confirm(const char *prompt, const char *altyes) { char buf[1024]; FILE *f; @@ -515,6 +515,8 @@ retval = 1; else if (strcmp(buf, "no") == 0) retval = 0; + else if (altyes != NULL && strcmp(buf, altyes) == 0) + retval = 1; else fprintf(stderr, "Please type 'yes' or 'no': ");...