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

Diff for /src/usr.bin/cvs/remote.c between version 1.24 and 1.25

version 1.24, 2008/06/14 03:19:15 version 1.25, 2009/02/21 14:50:53
Line 263 
Line 263 
                         cf->file_type = CVS_FILE;                          cf->file_type = CVS_FILE;
         }          }
   
         if (cf->fd != -1 && cf->file_ent != NULL) {          if (cf->fd != -1)
                   cf->file_flags |= FILE_ON_DISK;
   
           if ((cf->file_flags & FILE_ON_DISK) && cf->file_ent != NULL) {
                 if (fstat(cf->fd, &st) == -1)                  if (fstat(cf->fd, &st) == -1)
                         fatal("cvs_remote_classify_file(%s): %s", cf->file_path,                          fatal("cvs_remote_classify_file(%s): %s", cf->file_path,
                             strerror(errno));                              strerror(errno));
Line 272 
Line 275 
                         cf->file_status = FILE_MODIFIED;                          cf->file_status = FILE_MODIFIED;
                 else                  else
                         cf->file_status = FILE_UPTODATE;                          cf->file_status = FILE_UPTODATE;
         } else if (cf->fd == -1) {          } else if (!(cf->file_flags & FILE_ON_DISK)) {
                 cf->file_status = FILE_UNKNOWN;                  cf->file_status = FILE_UNKNOWN;
         }          }
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25