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

Diff for /src/usr.bin/cvs/remove.c between version 1.79 and 1.80

version 1.79, 2008/06/23 20:51:08 version 1.80, 2009/02/21 14:50:53
Line 124 
Line 124 
 cvs_remove_force(struct cvs_file *cf)  cvs_remove_force(struct cvs_file *cf)
 {  {
         if (cf->file_type != CVS_DIR) {          if (cf->file_type != CVS_DIR) {
                 if (cf->fd != -1) {                  if (cf->file_flags & FILE_ON_DISK) {
                         if (unlink(cf->file_path) == -1)                          if (unlink(cf->file_path) == -1)
                                 fatal("cvs_remove_force: %s", strerror(errno));                                  fatal("cvs_remove_force: %s", strerror(errno));
                         (void)close(cf->fd);                          (void)close(cf->fd);
Line 158 
Line 158 
                 return;                  return;
         }          }
   
         if (cf->fd != -1) {          if (cf->file_flags & FILE_ON_DISK) {
                 if (verbosity > 1)                  if (verbosity > 1)
                         cvs_log(LP_ERR, "file `%s' still in working directory",                          cvs_log(LP_ERR, "file `%s' still in working directory",
                             cf->file_name);                              cf->file_name);

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80