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

Diff for /src/usr.bin/cvs/diff.c between version 1.144 and 1.145

version 1.144, 2008/06/20 14:04:29 version 1.145, 2009/02/21 14:50:53
Line 286 
Line 286 
                                     "comparison available", cf->file_path);                                      "comparison available", cf->file_path);
                                 return;                                  return;
                         }                          }
                         if (cf->fd == -1) {                          if (!(cf->file_flags & FILE_ON_DISK)) {
                                 if (!cvs_server_active)                                  cvs_log(LP_ERR, "cannot find %s",
                                         cvs_log(LP_ERR, "cannot find %s",                                      cf->file_path);
                                             cf->file_path);  
                                 return;                                  return;
                         }                          }
                         break;                          break;
Line 306 
Line 305 
                         }                          }
                         break;                          break;
                 default:                  default:
                         if (cvs_server_active != 1 && cf->fd == -1) {                          if (!(cf->file_flags & FILE_ON_DISK)) {
                                 cvs_log(LP_ERR, "cannot find %s",                                  cvs_log(LP_ERR, "cannot find %s",
                                             cf->file_path);                                              cf->file_path);
                                 return;                                  return;
Line 457 
Line 456 
                 fd2 = rcs_rev_write_stmp(cf->file_rcs, diff_rev2, p2, 0);                  fd2 = rcs_rev_write_stmp(cf->file_rcs, diff_rev2, p2, 0);
                 if (futimes(fd2, tv2) == -1)                  if (futimes(fd2, tv2) == -1)
                         fatal("cvs_diff_local: utimes failed");                          fatal("cvs_diff_local: utimes failed");
         } else if (cvs_cmdop == CVS_OP_DIFF && cf->fd != -1 &&          } else if (cvs_cmdop == CVS_OP_DIFF &&
               (cf->file_flags & FILE_ON_DISK) &&
             cf->file_ent->ce_status != CVS_ENT_REMOVED) {              cf->file_ent->ce_status != CVS_ENT_REMOVED) {
                 if (fstat(cf->fd, &st) == -1)                  if (fstat(cf->fd, &st) == -1)
                         fatal("fstat failed %s", strerror(errno));                          fatal("fstat failed %s", strerror(errno));

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