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

Diff for /src/usr.bin/cvs/rcs.c between version 1.77 and 1.78

version 1.77, 2005/10/05 11:38:02 version 1.78, 2005/10/05 17:34:59
Line 597 
Line 597 
                                 return (-1);                                  return (-1);
                         }                          }
   
                         if ((to_fd = open(rfp->rf_path, O_WRONLY|O_CREAT))                          if ((to_fd = open(rfp->rf_path, O_WRONLY|O_TRUNC|O_CREAT))
                             == -1) {                              == -1) {
                                 cvs_log(LP_ERRNO, "failed to open `%s'", fn);                                  cvs_log(LP_ERRNO, "failed to open `%s'", fn);
                                 close(from_fd);                                  close(from_fd);

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78