version 1.22, 2005/07/23 22:43:39 |
version 1.23, 2005/07/24 16:46:40 |
|
|
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); |
} |
} |
|
|
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); |