[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.143 and 1.144

version 1.143, 2006/05/28 07:56:44 version 1.144, 2006/05/28 08:49:01
Line 569 
Line 569 
         cf->file_rpath = xstrdup(rcsfile);          cf->file_rpath = xstrdup(rcsfile);
         cf->file_ent = cvs_ent_get(entlist, cf->file_name);          cf->file_ent = cvs_ent_get(entlist, cf->file_name);
   
           if (cf->file_ent != NULL) {
                   if (cf->file_ent->ce_type == CVS_ENT_DIR &&
                       cf->file_type != CVS_DIR)
                           fatal("%s is suppose to be a directory, but it is not",
                               cf->file_path);
                   if (cf->file_ent->ce_type == CVS_ENT_FILE &&
                       cf->file_type != CVS_FILE)
                           fatal("%s is suppose to be a file, but it is not",
                               cf->file_path);
           }
   
         if (cf->file_type == CVS_DIR) {          if (cf->file_type == CVS_DIR) {
                 if (cf->fd == -1 && stat(rcsfile, &st) != -1)                  if (cf->fd == -1 && stat(rcsfile, &st) != -1)
                         cf->file_status = DIR_CREATE;                          cf->file_status = DIR_CREATE;
                 else if (cf->file_ent != NULL)                  else if (cf->file_ent != NULL)
                         cf->file_status = FILE_UPTODATE;                          cf->file_status = FILE_UPTODATE;
                   else
                           cf->file_status = FILE_UNKNOWN;
   
                 xfree(repo);                  xfree(repo);
                 xfree(rcsfile);                  xfree(rcsfile);
                 cvs_ent_close(entlist, ENT_NOSYNC);                  cvs_ent_close(entlist, ENT_NOSYNC);

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144