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

Diff for /src/usr.bin/ssh/sftp.c between version 1.40 and 1.41

version 1.40, 2004/01/21 03:07:59 version 1.41, 2004/01/27 10:08:10
Line 205 
Line 205 
                 userhost = xstrdup(argv[optind]);                  userhost = xstrdup(argv[optind]);
                 file2 = argv[optind+1];                  file2 = argv[optind+1];
   
                 if ((cp = colon(userhost)) != NULL) {  
                         *cp++ = '\0';  
                         file1 = cp;  
                 }  
   
                 if ((host = strrchr(userhost, '@')) == NULL)                  if ((host = strrchr(userhost, '@')) == NULL)
                         host = userhost;                          host = userhost;
                 else {                  else {
Line 219 
Line 214 
                                 usage();                                  usage();
                         }                          }
                         addargs(&args, "-l%s",userhost);                          addargs(&args, "-l%s",userhost);
                   }
   
                   if ((cp = colon(host)) != NULL) {
                           *cp++ = '\0';
                           file1 = cp;
                 }                  }
   
                 host = cleanhostname(host);                  host = cleanhostname(host);

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41