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

Diff for /src/usr.bin/cvs/util.c between version 1.48 and 1.49

version 1.48, 2005/07/30 21:16:17 version 1.49, 2005/08/12 14:41:54
Line 519 
Line 519 
 }  }
   
 /*  /*
    * cvs_rename()
    * Change the name of a file.
    * rename() wrapper with an error message.
    * Returns 0 on success, or -1 on failure.
    */
   int
   cvs_rename(const char *from, const char *to)
   {
           cvs_log(LP_TRACE, "cvs_rename(%s,%s)", from, to);
   
           if (cvs_noexec == 1)
                   return (0);
   
           if (rename(from, to) == -1) {
                   cvs_log(LP_ERRNO, "cannot rename file `%s' to `%s'", from, to);
                   return (-1);
           }
   
           return (0);
   }
   
   /*
  * cvs_unlink()   * cvs_unlink()
  *   *
  * Removes the link named by <path>.   * Removes the link named by <path>.

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49