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

Diff for /src/usr.bin/rdist/client.c between version 1.24 and 1.25

version 1.24, 2012/11/12 01:14:41 version 1.25, 2012/11/12 01:18:37
Line 593 
Line 593 
         if (response() < 0)          if (response() < 0)
                 return(-1);                  return(-1);
   
           optarget = ptarget;
   
         /*          /*
          * Don't descend into directory           * Don't descend into directory
          */           */
         if (IS_ON(opts, DO_NODESCEND))          if (IS_ON(opts, DO_NODESCEND)) {
                   didupdate = 0;
                 goto out;                  goto out;
           }
   
         if (IS_ON(opts, DO_REMOVE))          if (IS_ON(opts, DO_REMOVE))
                 if (rmchk(opts) > 0)                  if (rmchk(opts) > 0)
Line 605 
Line 609 
   
         if ((d = opendir(target)) == NULL) {          if ((d = opendir(target)) == NULL) {
                 error("%s: opendir failed: %s", target, SYSERR);                  error("%s: opendir failed: %s", target, SYSERR);
                 return(-1);                  didupdate = -1;
                   goto out;
         }          }
   
         optarget = ptarget;  
         len = ptarget - target;          len = ptarget - target;
         while ((dp = readdir(d)) != NULL) {          while ((dp = readdir(d)) != NULL) {
                 if (!strcmp(dp->d_name, ".") ||                  if (!strcmp(dp->d_name, ".") ||
Line 631 
Line 635 
         }          }
         (void) closedir(d);          (void) closedir(d);
   
   out:
         (void) sendcmd(C_END, NULL);          (void) sendcmd(C_END, NULL);
         (void) response();          (void) response();
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25