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

Diff for /src/usr.bin/oldrdist/Attic/server.c between version 1.21 and 1.22

version 1.21, 2003/04/05 17:18:26 version 1.22, 2003/04/06 17:57:45
Line 251 
Line 251 
         if (opts & WHOLE)          if (opts & WHOLE)
                 source[0] = '\0';                  source[0] = '\0';
         else          else
                 strcpy(source, src);                  strlcpy(source, src, sizeof source);
   
         if (dest == NULL) {          if (dest == NULL) {
                 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */                  opts &= ~WHOLE; /* WHOLE mode only useful if renaming */
Line 582 
Line 582 
                 lp->inum = stp->st_ino;                  lp->inum = stp->st_ino;
                 lp->devnum = stp->st_dev;                  lp->devnum = stp->st_dev;
                 lp->count = stp->st_nlink - 1;                  lp->count = stp->st_nlink - 1;
                 strcpy(lp->pathname, target);                  strlcpy(lp->pathname, target, sizeof lp->pathname);
                 strcpy(lp->src, source);                  strlcpy(lp->src, source, sizeof lp->src);
                 if (Tdest)                  if (Tdest)
                         strcpy(lp->target, Tdest);                          strlcpy(lp->target, Tdest, sizeof lp->target);
                 else                  else
                         *lp->target = 0;                          *lp->target = 0;
         }          }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22