[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.234 and 1.235

version 1.234, 2008/03/09 03:14:52 version 1.235, 2008/03/09 18:02:17
Line 655 
Line 655 
                 cf->file_ent = NULL;                  cf->file_ent = NULL;
   
         if (cf->file_ent != NULL) {          if (cf->file_ent != NULL) {
                 if (cf->file_ent->ce_type == CVS_ENT_DIR &&                  if (cf->fd != -1 && cf->file_ent->ce_type == CVS_ENT_DIR &&
                     cf->file_type != CVS_DIR)                      cf->file_type != CVS_DIR)
                         fatal("%s is supposed to be a directory, but it is not",                          fatal("%s is supposed to be a directory, but it is not",
                             cf->file_path);                              cf->file_path);
                 if (cf->file_ent->ce_type == CVS_ENT_FILE &&                  if (cf->fd != -1 && cf->file_ent->ce_type == CVS_ENT_FILE &&
                     cf->file_type != CVS_FILE)                      cf->file_type != CVS_FILE)
                         fatal("%s is supposed to be a file, but it is not",                          fatal("%s is supposed to be a file, but it is not",
                             cf->file_path);                              cf->file_path);
Line 867 
Line 867 
                         if (cf->fd == -1 && server_has_file == 0) {                          if (cf->fd == -1 && server_has_file == 0) {
                                 cvs_log(LP_NOTICE,                                  cvs_log(LP_NOTICE,
                                     "warning: %s's entry exists but"                                      "warning: %s's entry exists but"
                                     " there is no longer a file"                                      " is no longer in the repository,"
                                     " in the repository,"  
                                     " removing entry",                                      " removing entry",
                                      cf->file_path);                                       cf->file_path);
                                 cf->file_status = FILE_REMOVE_ENTRY;                                  cf->file_status = FILE_REMOVE_ENTRY;

Legend:
Removed from v.1.234  
changed lines
  Added in v.1.235