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

Diff for /src/usr.bin/cvs/file.c between version 1.225 and 1.226

version 1.225, 2008/03/01 14:55:03 version 1.226, 2008/03/01 21:29:37
Line 321 
Line 321 
                                         (void)close(fd);                                          (void)close(fd);
                                         goto next;                                          goto next;
                                 }                                  }
   
                                 /* this file is not in our working copy yet */                                  /* this file is not in our working copy yet */
                                 (void)close(fd);                                  (void)close(fd);
                                 fd = -1;                                  fd = -1;
Line 969 
Line 969 
                 if (stb1.st_size > (off_t)SIZE_MAX) {                  if (stb1.st_size > (off_t)SIZE_MAX) {
                         ret = 1;                          ret = 1;
                         goto out;                          goto out;
                 }                  }
   
                 if ((p1 = mmap(NULL, stb1.st_size, PROT_READ,                  if ((p1 = mmap(NULL, stb1.st_size, PROT_READ,
                     MAP_FILE, fd1, (off_t)0)) == MAP_FAILED)                      MAP_FILE, fd1, (off_t)0)) == MAP_FAILED)
Line 1026 
Line 1026 
                 if (st.st_size > (off_t)SIZE_MAX) {                  if (st.st_size > (off_t)SIZE_MAX) {
                         ret = -1;                          ret = -1;
                         goto out;                          goto out;
                 }                  }
   
                 if ((dst = open(to, O_CREAT|O_TRUNC|O_WRONLY,                  if ((dst = open(to, O_CREAT|O_TRUNC|O_WRONLY,
                     st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO))) == -1)                      st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO))) == -1)

Legend:
Removed from v.1.225  
changed lines
  Added in v.1.226