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

Diff for /src/usr.bin/rdist/rdist.c between version 1.6 and 1.7

version 1.6, 1998/07/16 20:43:56 version 1.7, 1999/02/04 23:18:57
Line 94 
Line 94 
                 return;                  return;
   
         new = (struct namelist *) xmalloc(sizeof(struct namelist));          new = (struct namelist *) xmalloc(sizeof(struct namelist));
         new->n_name = strdup(name);          new->n_name = xstrdup(name);
         new->n_next = NULL;          new->n_next = NULL;
   
         if (*hostlist) {          if (*hostlist) {
Line 174 
Line 174 
                         break;                          break;
   
                 case 'L':                  case 'L':
                         remotemsglist = strdup(optarg);                          remotemsglist = xstrdup(optarg);
                         break;                          break;
   
                 case 'A':                  case 'A':
Line 200 
Line 200 
                         break;                          break;
   
                 case 'f':                  case 'f':
                         distfile = strdup(optarg);                          distfile = xstrdup(optarg);
                         if (distfile[0] == '-' && distfile[1] == CNULL)                          if (distfile[0] == '-' && distfile[1] == CNULL)
                                 fin = stdin;                                  fin = stdin;
                         break;                          break;
Line 246 
Line 246 
                                 error("No path specified to \"-p\".");                                  error("No path specified to \"-p\".");
                                 usage();                                  usage();
                         }                          }
                         path_rdistd = strdup(optarg);                          path_rdistd = xstrdup(optarg);
                         break;                          break;
   
                 case 'P':                  case 'P':
Line 255 
Line 255 
                                 usage();                                  usage();
                         }                          }
                         if ((cp = searchpath(optarg)))                          if ((cp = searchpath(optarg)))
                                 path_remsh = strdup(cp);                                  path_remsh = xstrdup(cp);
                         else {                          else {
                                 error("No component of path \"%s\" exists.",                                  error("No component of path \"%s\" exists.",
                                       optarg);                                        optarg);

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