[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.15 and 1.16

version 1.15, 2003/04/07 21:13:52 version 1.16, 2003/04/19 17:22:29
Line 525 
Line 525 
                          * CC_NO -- file exists - DON'T remove.                           * CC_NO -- file exists - DON'T remove.
                          * CC_YES -- file doesn't exist - REMOVE.                           * CC_YES -- file doesn't exist - REMOVE.
                          */                           */
                         (void) sprintf(ptarget, "%s%s",                          snprintf(ptarget, target + sizeof(target) - ptarget,
                                        (ptarget[-1] == '/' ? "" : "/"), s);                              "%s%s", (ptarget[-1] == '/' ? "" : "/"), s);
                         debugmsg(DM_MISC, "check %s\n", target);                          debugmsg(DM_MISC, "check %s\n", target);
                         if (except(target))                          if (except(target))
                                 (void) sendcmd(CC_NO, NULL);                                  (void) sendcmd(CC_NO, NULL);
Line 1215 
Line 1215 
                         debugmsg(DM_MISC, "%s\n", buff);                          debugmsg(DM_MISC, "%s\n", buff);
         }          }
   
         rname = exptilde(target, src);          rname = exptilde(target, src, sizeof(target));
         if (rname == NULL)          if (rname == NULL)
                 return(-1);                  return(-1);
         ptarget = target;          ptarget = target;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16