[BACK]Return to ssh.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh.c between version 1.461 and 1.462

version 1.461, 2017/05/30 18:58:37 version 1.462, 2017/08/12 06:46:01
Line 493 
Line 493 
 main(int ac, char **av)  main(int ac, char **av)
 {  {
         struct ssh *ssh = NULL;          struct ssh *ssh = NULL;
         int i, r, opt, exit_status, use_syslog, direct, config_test = 0;          int i, r, opt, exit_status, use_syslog, direct, timeout_ms;
           int config_test = 0, opt_terminated = 0;
         char *p, *cp, *line, *argv0, buf[PATH_MAX], *host_arg, *logfile;          char *p, *cp, *line, *argv0, buf[PATH_MAX], *host_arg, *logfile;
         char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];          char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];
         char cname[NI_MAXHOST], uidstr[32], *conn_hash_hex;          char cname[NI_MAXHOST], uidstr[32], *conn_hash_hex;
         struct stat st;          struct stat st;
         struct passwd *pw;          struct passwd *pw;
         int timeout_ms;  
         extern int optind, optreset;          extern int optind, optreset;
         extern char *optarg;          extern char *optarg;
         struct Forward fwd;          struct Forward fwd;
Line 886 
Line 886 
                 }                  }
         }          }
   
           if (optind > 1 && strcmp(av[optind - 1], "--") == 0)
                   opt_terminated = 1;
   
         ac -= optind;          ac -= optind;
         av += optind;          av += optind;
   
Line 900 
Line 903 
                         host = xstrdup(++cp);                          host = xstrdup(++cp);
                 } else                  } else
                         host = xstrdup(*av);                          host = xstrdup(*av);
                 if (ac > 1) {                  if (ac > 1 && !opt_terminated) {
                         optind = optreset = 1;                          optind = optreset = 1;
                         goto again;                          goto again;
                 }                  }

Legend:
Removed from v.1.461  
changed lines
  Added in v.1.462