[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.22 and 1.23

version 1.22, 2005/07/23 22:43:39 version 1.23, 2005/07/24 16:46:40
Line 177 
Line 177 
                         cvs_log(LP_ERRNO, "%s", buf);                          cvs_log(LP_ERRNO, "%s", buf);
                         return (CVS_EX_DATA);                          return (CVS_EX_DATA);
                 }                  }
                 if (!cvs_noexec && (unlink(buf) == -1) && (errno != ENOENT)) {                  if ((cvs_noexec == 0) &&
                       (unlink(buf) == -1) && (errno != ENOENT)) {
                         cvs_log(LP_ERRNO, "cannot remove %s", buf);                          cvs_log(LP_ERRNO, "cannot remove %s", buf);
                         return (CVS_EX_FILE);                          return (CVS_EX_FILE);
                 }                  }
Line 226 
Line 227 
 int cvs_remove_file(const char *fpath)  int cvs_remove_file(const char *fpath)
 {  {
         /* if -f option is used, physically remove the file */          /* if -f option is used, physically remove the file */
         if ((force_remove == 1) && !cvs_noexec) {          if ((force_remove == 1) && (cvs_noexec == 0)) {
                 if((unlink(fpath) == -1) && (errno != ENOENT)) {                  if((unlink(fpath) == -1) && (errno != ENOENT)) {
                         cvs_log(LP_ERRNO, "unable to remove %s", fpath);                          cvs_log(LP_ERRNO, "unable to remove %s", fpath);
                         return (-1);                          return (-1);

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23