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

Diff for /src/usr.bin/rsync/uploader.c between version 1.32 and 1.33

version 1.32, 2021/10/29 08:00:59 version 1.33, 2021/11/03 14:42:12
Line 653 
Line 653 
  */   */
 static int  static int
 check_file(int rootfd, const struct flist *f, struct stat *st)  check_file(int rootfd, const struct flist *f, struct stat *st)
 {  {
         if (fstatat(rootfd, f->path, st, AT_SYMLINK_NOFOLLOW) == -1) {          if (fstatat(rootfd, f->path, st, AT_SYMLINK_NOFOLLOW) == -1) {
                 if (errno == ENOENT)                  if (errno == ENOENT)
                         return 3;                          return 3;
Line 1035 
Line 1035 
         /* Make sure the block metadata buffer is big enough. */          /* Make sure the block metadata buffer is big enough. */
   
         u->bufsz =          u->bufsz =
              sizeof(int32_t) + /* identifier */              sizeof(int32_t) + /* identifier */
              sizeof(int32_t) + /* block count */              sizeof(int32_t) + /* block count */
              sizeof(int32_t) + /* block length */              sizeof(int32_t) + /* block length */
              sizeof(int32_t) + /* checksum length */              sizeof(int32_t) + /* checksum length */
              sizeof(int32_t) + /* block remainder */              sizeof(int32_t) + /* block remainder */
              blk.blksz *              blk.blksz *
              (sizeof(int32_t) + /* short checksum */              (sizeof(int32_t) + /* short checksum */
               blk.csum); /* long checksum */              blk.csum); /* long checksum */
   
         if (u->bufsz > u->bufmax) {          if (u->bufsz > u->bufmax) {
                 if ((bufp = realloc(u->buf, u->bufsz)) == NULL) {                  if ((bufp = realloc(u->buf, u->bufsz)) == NULL) {

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33