]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2001/02/08 22:35:30
authormouring <mouring>
Sat, 10 Feb 2001 23:21:09 +0000 (23:21 +0000)
committermouring <mouring>
Sat, 10 Feb 2001 23:21:09 +0000 (23:21 +0000)
     [sshconnect.c]
     don't connect if batch_mode is true and stricthostkeychecking set to
    'ask'

ChangeLog
sshconnect.c

index 48ebc2f5c1e0d48a2174b49804c72fc7c7da75c8..a4f6987b7aa5895c4373cb1d6b5e5ea6df79303f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [ssh-keyscan.c]
      do not assume malloc() returns zero-filled region.  found by 
      malloc.conf=AJ.
+   - markus@cvs.openbsd.org 2001/02/08 22:35:30
+     [sshconnect.c]
+     don't connect if batch_mode is true and stricthostkeychecking set to 
+    'ask'
  - (bal) fixed sftp-client.c.  Return 'status' instead of '0'  
    (from the OpenBSD tree)
  - (bal) Synced ssh.1, ssh-add.1 and sshd.8 w/ OpenBSD
index 10f52a0732d44648765b1e9b1734e9534e57bec4..2de7262446520425153e6c2b92a9476a5cca5a6a 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.95 2001/02/08 19:30:52 itojun Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.96 2001/02/08 22:35:30 markus Exp $");
 
 #include <openssl/bn.h>
 
@@ -421,6 +421,7 @@ ssh_exchange_identification(void)
        debug("Local version string %.100s", client_version_string);
 }
 
+/* defaults to 'no' */
 int
 read_yes_or_no(const char *prompt, int defval)
 {
@@ -428,6 +429,9 @@ read_yes_or_no(const char *prompt, int defval)
        FILE *f;
        int retval = -1;
 
+       if (options.batch_mode)
+               return 0;
+
        if (isatty(STDIN_FILENO))
                f = stdin;
        else
This page took 0.056015 seconds and 5 git commands to generate.