=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/client.c,v retrieving revision 1.64 retrieving revision 1.65 diff -c -r1.64 -r1.65 *** src/usr.bin/cvs/client.c 2007/06/26 02:24:10 1.64 --- src/usr.bin/cvs/client.c 2007/06/27 03:58:16 1.65 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.64 2007/06/26 02:24:10 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.65 2007/06/27 03:58:16 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 767,776 **** void cvs_client_removed(char *data) { ! char *dir; ! dir = cvs_remote_input(); ! xfree(dir); } void --- 767,788 ---- void cvs_client_removed(char *data) { ! CVSENTRIES *entlist; ! char *rpath, *filename, fpath[MAXPATHLEN]; ! rpath = cvs_remote_input(); ! 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