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

Diff for /src/usr.bin/cvs/Attic/resp.c between version 1.44 and 1.45

version 1.44, 2005/07/10 00:12:52 version 1.45, 2005/07/14 07:38:35
Line 624 
Line 624 
         mode_t fmode;          mode_t fmode;
         char path[MAXPATHLEN], cksum_buf[CVS_CKSUM_LEN];          char path[MAXPATHLEN], cksum_buf[CVS_CKSUM_LEN];
         BUF *fbuf;          BUF *fbuf;
         struct cvs_ent *ep;          struct cvs_ent *ent;
         struct timeval tv[2];          struct timeval tv[2];
   
         STRIP_SLASH(line);          STRIP_SLASH(line);
Line 637 
Line 637 
         if (cvs_getln(root, path, sizeof(path)) < 0)          if (cvs_getln(root, path, sizeof(path)) < 0)
                 return (-1);                  return (-1);
   
         if ((ep = cvs_ent_parse(path)) == NULL)          if ((ent = cvs_ent_parse(path)) == NULL)
                 return (-1);                  return (-1);
         ret = snprintf(path, sizeof(path), "%s/%s", line, ep->ce_name);          ret = snprintf(path, sizeof(path), "%s/%s", line, ent->ce_name);
         if (ret == -1 || ret >= (int)sizeof(path)) {          if (ret == -1 || ret >= (int)sizeof(path)) {
                 cvs_log(LP_ERR, "Entries path overflow in response");                  cvs_log(LP_ERR, "Entries path overflow in response");
                 return (-1);                  return (-1);
Line 650 
Line 650 
                 return (-1);                  return (-1);
   
         if (cvs_modtime != CVS_DATE_DMSEC) {          if (cvs_modtime != CVS_DATE_DMSEC) {
                 ep->ce_mtime = cvs_modtime;                  ent->ce_mtime = cvs_modtime;
         } else          } else
                 ep->ce_mtime = time(&(ep->ce_mtime));                  ent->ce_mtime = time(&(ent->ce_mtime));
   
         if ((type == CVS_RESP_UPDEXIST) || (type == CVS_RESP_UPDATED) ||          if ((type == CVS_RESP_UPDEXIST) || (type == CVS_RESP_UPDATED) ||
             (type == CVS_RESP_MERGED) || (type == CVS_RESP_CREATED)) {              (type == CVS_RESP_MERGED) || (type == CVS_RESP_CREATED)) {
                 if ((cvs_ent_remove(cvs_resp_lastent, ep->ce_name) < 0) &&                  if ((cvs_ent_remove(cvs_resp_lastent, ent->ce_name) < 0) &&
                     (type != CVS_RESP_CREATED)) {                      (type != CVS_RESP_CREATED)) {
                         cvs_log(LP_WARN, "failed to remove entry for '%s`",                          cvs_log(LP_WARN, "failed to remove entry for '%s`",
                             ep->ce_name);                              ent->ce_name);
                 }                  }
         }          }
   
         if (cvs_ent_add(cvs_resp_lastent, ep) < 0) {          if (cvs_ent_add(cvs_resp_lastent, ent) < 0) {
                 cvs_ent_free(ep);                  cvs_ent_free(ent);
                 return (-1);                  return (-1);
         }          }
   

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