[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.124 and 1.125

version 1.124, 2001/06/07 20:23:05 version 1.125, 2001/06/22 23:35:21
Line 236 
Line 236 
 {  {
         int i, opt, optind, exit_status, ok;          int i, opt, optind, exit_status, ok;
         u_short fwd_port, fwd_host_port;          u_short fwd_port, fwd_host_port;
         char *optarg, *cp, buf[256];          char *optarg, *p, *cp, buf[256];
         struct stat st;          struct stat st;
         struct passwd *pw;          struct passwd *pw;
         int dummy;          int dummy;
Line 292 
Line 292 
                 if (av[optind][0] != '-') {                  if (av[optind][0] != '-') {
                         if (host)                          if (host)
                                 break;                                  break;
                         if ((cp = strchr(av[optind], '@'))) {                          if (strchr(av[optind], '@')) {
                                 if(cp == av[optind])                                  p = xstrdup(av[optind]);
                                   cp = strchr(p, '@');
                                   if(cp == NULL || cp == p)
                                         usage();                                          usage();
                                 options.user = av[optind];                                  options.user = p;
                                 *cp = '\0';                                  *cp = '\0';
                                 host = ++cp;                                  host = ++cp;
                         } else                          } else

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125