version 1.76, 2008/06/08 18:08:59 |
version 1.77, 2008/06/14 02:43:47 |
|
|
cr.leavedir = NULL; |
cr.leavedir = NULL; |
cr.flags = flags; |
cr.flags = flags; |
|
|
cr.fileproc = cvs_remove_force; |
if (force_remove == 1 && cvs_noexec == 0) { |
if (argc > 0) |
cr.fileproc = cvs_remove_force; |
cvs_file_run(argc, argv, &cr); |
if (argc > 0) |
else |
cvs_file_run(argc, argv, &cr); |
cvs_file_run(1, &arg, &cr); |
else |
|
cvs_file_run(1, &arg, &cr); |
|
} |
|
|
if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { |
if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { |
cvs_client_connect_to_server(); |
cvs_client_connect_to_server(); |
|
|
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 && force_remove == 1 && cvs_noexec == 0) { |
if (cf->fd != -1) { |
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); |