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

Diff for /src/usr.bin/rsync/Attic/child.c between version 1.6 and 1.7

version 1.6, 2019/02/18 21:34:54 version 1.7, 2019/02/18 21:55:27
Line 46 
Line 46 
   
         if ((args = fargs_cmdline(&sess, f)) == NULL) {          if ((args = fargs_cmdline(&sess, f)) == NULL) {
                 ERRX1(&sess, "fargs_cmdline");                  ERRX1(&sess, "fargs_cmdline");
                 exit(EXIT_FAILURE);                  exit(1);
         }          }
   
         for (i = 0; args[i] != NULL; i++)          for (i = 0; args[i] != NULL; i++)
Line 56 
Line 56 
   
         if (dup2(fd, STDIN_FILENO) == -1) {          if (dup2(fd, STDIN_FILENO) == -1) {
                 ERR(&sess, "dup2");                  ERR(&sess, "dup2");
                 exit(EXIT_FAILURE);                  exit(1);
         } if (dup2(fd, STDOUT_FILENO) == -1) {          } if (dup2(fd, STDOUT_FILENO) == -1) {
                 ERR(&sess, "dup2");                  ERR(&sess, "dup2");
                 exit(EXIT_FAILURE);                  exit(1);
         }          }
   
         /* Here we go... */          /* Here we go... */
Line 67 
Line 67 
         execvp(args[0], args);          execvp(args[0], args);
   
         ERR(&sess, "%s: execvp", args[0]);          ERR(&sess, "%s: execvp", args[0]);
         exit(EXIT_FAILURE);          exit(1);
         /* NOTREACHED */          /* NOTREACHED */
 }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7