version 1.8, 2005/04/18 21:02:50 |
version 1.9, 2005/04/19 15:36:39 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <libgen.h> |
|
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "cvs.h" |
#include "cvs.h" |
|
|
force_remove = 1; |
force_remove = 1; |
break; |
break; |
case 'l': |
case 'l': |
|
cvs_remove.file_flags &= ~CF_RECURSE; |
break; |
break; |
case 'R': |
case 'R': |
|
cvs_remove.file_flags |= CF_RECURSE; |
break; |
break; |
default: |
default: |
return (CVS_EX_USAGE); |
return (CVS_EX_USAGE); |
|
|
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
|
|
if (root->cr_method != CVS_METHOD_LOCAL) { |
if (root->cr_method != CVS_METHOD_LOCAL) { |
ret = cvs_sendentry(root, cf); |
if (cvs_sendentry(root, cf) < 0) { |
|
return (CVS_EX_PROTO); |
|
} |
|
|
} else { |
} else { |
/* if -f option is used, physically remove the file */ |
/* if -f option is used, physically remove the file */ |
if (force_remove == 1) { |
if (force_remove == 1) { |