version 1.64, 2007/06/26 02:24:10 |
version 1.65, 2007/06/27 03:58:16 |
|
|
void |
void |
cvs_client_removed(char *data) |
cvs_client_removed(char *data) |
{ |
{ |
char *dir; |
CVSENTRIES *entlist; |
|
char *rpath, *filename, fpath[MAXPATHLEN]; |
|
|
dir = cvs_remote_input(); |
rpath = cvs_remote_input(); |
xfree(dir); |
if ((filename = strrchr(rpath, '/')) == NULL) |
|
fatal("bad rpath in cvs_client_removed: %s", rpath); |
|
filename++; |
|
|
|
entlist = cvs_ent_open(data); |
|
cvs_ent_remove(entlist, filename); |
|
cvs_ent_close(entlist, ENT_SYNC); |
|
|
|
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", data, filename); |
|
(void)unlink(fpath); |
|
|
|
xfree(rpath); |
} |
} |
|
|
void |
void |