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

Diff for /src/usr.bin/cvs/client.c between version 1.45 and 1.46

version 1.45, 2007/01/11 02:35:55 version 1.46, 2007/01/13 15:29:34
Line 611 
Line 611 
 void  void
 cvs_client_updated(char *data)  cvs_client_updated(char *data)
 {  {
         BUF *bp;  
         int l, fd;          int l, fd;
         time_t now;          time_t now;
         mode_t fmode;          mode_t fmode;
Line 670 
Line 669 
         cvs_ent_close(ent, ENT_SYNC);          cvs_ent_close(ent, ENT_SYNC);
         xfree(entry);          xfree(entry);
   
         bp = cvs_remote_receive_file(flen);  
         if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)          if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1)
                 fatal("cvs_client_updated: open: %s: %s",                  fatal("cvs_client_updated: open: %s: %s",
                     fpath, strerror(errno));                      fpath, strerror(errno));
   
         if (cvs_buf_write_fd(bp, fd) == -1)          cvs_remote_receive_file(fd, flen);
                 fatal("cvs_client_updated: cvs_buf_write_fd failed for %s",  
                     fpath);  
   
         cvs_buf_free(bp);  
   
         now = cvs_hack_time(now, 0);          now = cvs_hack_time(now, 0);
         tv[0].tv_sec = now;          tv[0].tv_sec = now;

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46