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

Diff for /src/usr.bin/rsync/fargs.c between version 1.17 and 1.18

version 1.17, 2019/05/08 20:00:25 version 1.18, 2021/05/17 12:02:58
Line 17 
Line 17 
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <assert.h>  #include <assert.h>
   #include <err.h>
 #include <stdint.h>  #include <stdint.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 51 
Line 52 
                 if (sess->opts->ssh_prog) {                  if (sess->opts->ssh_prog) {
                         ap = strdup(sess->opts->ssh_prog);                          ap = strdup(sess->opts->ssh_prog);
                         if (ap == NULL)                          if (ap == NULL)
                                 goto out;                                  err(ERR_NOMEM, NULL);
   
                         while ((arg = strsep(&ap, " \t")) != NULL) {                          while ((arg = strsep(&ap, " \t")) != NULL) {
                                 if (arg[0] == '\0') {                                  if (arg[0] == '\0') {
Line 127 
Line 128 
                 addargs(&args, "%s", f->sink);                  addargs(&args, "%s", f->sink);
   
         return args.list;          return args.list;
 out:  
         freeargs(&args);  
         ERR("calloc");  
         return NULL;  
 }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18