Displaying 1 result from an estimated 1 matches for "run_xfer_script".
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...purpose of the child.  Also indicate
           * this to the caller so that thhey know something went
           * wrong.  */
! 	if (WIFEXITED(*status) != 0) *status = WEXITSTATUS(*status);
  }
  
  static void report(int f)
***************
*** 384,389 ****
--- 384,486 ----
  }
  
  
+ static int run_xfer_script(const char *script, const struct file_list *flist, const char *name)
+ {
+ 	int status;
+ 	pid_t cmd;
+ 
+ 	cmd = fork();
+ 	switch (cmd) {
+ 		case 0:   /* child */
+ 		{
+ 			char **pargv;
+ 			char *fname;
+ 			int i, j;
+ 
+ 			pargv = (char **) malloc((flist->count + 2)*sizeof(char *));
+...