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

Diff for /src/usr.bin/ssh/scp.c between version 1.214 and 1.215

version 1.214, 2021/04/03 06:18:40 version 1.215, 2021/07/05 00:25:42
Line 888 
Line 888 
                         goto out;                          goto out;
                 }                  }
         }          }
         if (tuser != NULL && !okname(tuser)) {  
                 ++errs;  
                 goto out;  
         }  
   
         /* Parse source files */          /* Parse source files */
         for (i = 0; i < argc - 1; i++) {          for (i = 0; i < argc - 1; i++) {
Line 926 
Line 922 
                         (void) close(remout);                          (void) close(remout);
                         remin = remout = -1;                          remin = remout = -1;
                 } else if (host) {      /* standard remote to remote */                  } else if (host) {      /* standard remote to remote */
                           /*
                            * Second remote user is passed to first remote side
                            * via scp command-line. Ensure it contains no obvious
                            * shell characters.
                            */
                           if (tuser != NULL && !okname(tuser)) {
                                   ++errs;
                                   continue;
                           }
                         if (tport != -1 && tport != SSH_DEFAULT_PORT) {                          if (tport != -1 && tport != SSH_DEFAULT_PORT) {
                                 /* This would require the remote support URIs */                                  /* This would require the remote support URIs */
                                 fatal("target port not supported with two "                                  fatal("target port not supported with two "

Legend:
Removed from v.1.214  
changed lines
  Added in v.1.215