[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.252 and 1.253

version 1.252, 2023/01/10 23:22:15 version 1.253, 2023/03/03 03:12:24
Line 338 
Line 338 
         /* Fork a child to execute the command on the remote host using ssh. */          /* Fork a child to execute the command on the remote host using ssh. */
         pid = fork();          pid = fork();
         if (pid == 0) {          if (pid == 0) {
                 dup2(fdin, 0);                  if (dup2(fdin, 0) == -1)
                 dup2(fdout, 1);                          perror("dup2");
                   if (dup2(fdout, 1) == -1)
                           perror("dup2");
   
                 replacearg(&args, 0, "%s", ssh_program);                  replacearg(&args, 0, "%s", ssh_program);
                 if (port != -1) {                  if (port != -1) {

Legend:
Removed from v.1.252  
changed lines
  Added in v.1.253