[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.43 and 1.44

version 1.43, 2005/07/05 12:00:45 version 1.44, 2005/07/10 00:12:52
Line 440 
Line 440 
                         return (-1);                          return (-1);
                 }                  }
   
                   /*
                    * If the Entries file for the parent is already
                    * open, operate on that, instead of reopening it
                    * and invalidating the opened list.
                    */
                   if (!strcmp(subdir, cvs_resp_lastdir))
                           entf = cvs_resp_lastent;
                   else
                           entf = cvs_ent_open(subdir, O_WRONLY);
   
                 /* add a directory entry to the parent */                  /* add a directory entry to the parent */
                 if ((entf = cvs_ent_open(subdir, O_WRONLY)) != NULL) {                  if (entf != NULL) {
                         if ((ent = cvs_ent_get(entf, CVS_FILE_NAME(cf))) == NULL) {                          if ((ent = cvs_ent_get(entf,
                               CVS_FILE_NAME(cf))) == NULL) {
                                 snprintf(buf, sizeof(buf), "D/%s////",                                  snprintf(buf, sizeof(buf), "D/%s////",
                                     CVS_FILE_NAME(cf));                                      CVS_FILE_NAME(cf));
                                 ent = cvs_ent_parse(buf);                                  ent = cvs_ent_parse(buf);
Line 452 
Line 463 
                                 else                                  else
                                         cvs_ent_add(entf, ent);                                          cvs_ent_add(entf, ent);
                         }                          }
                         cvs_ent_close(entf);  
                           if (strcmp(subdir, cvs_resp_lastdir))
                                   cvs_ent_close(entf);
                 }                  }
         }          }
   

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