version 1.79, 2008/06/23 20:51:08 |
version 1.80, 2009/02/21 14:50:53 |
|
|
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); |
|
|
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); |