=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/remove.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/cvs/remove.c 2006/01/25 08:15:05 1.41 --- src/usr.bin/cvs/remove.c 2006/01/27 12:45:21 1.42 *************** *** 1,4 **** ! /* $OpenBSD: remove.c,v 1.41 2006/01/25 08:15:05 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2004, 2005 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: remove.c,v 1.42 2006/01/27 12:45:21 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2004, 2005 Xavier Santolaria *************** *** 110,116 **** cvs_file_getpath(cf, fpath, sizeof(fpath)); if (cvs_remove_file(fpath) < 0) ! return (CVS_EX_FILE); cvs_sendentry(root, cf); --- 110,116 ---- cvs_file_getpath(cf, fpath, sizeof(fpath)); if (cvs_remove_file(fpath) < 0) ! fatal("cvs_remove_remote: cvs_remove_file `%s' failed", fpath); cvs_sendentry(root, cf); *************** *** 146,152 **** cvs_file_getpath(cf, fpath, sizeof(fpath)); if (cvs_remove_file(fpath) < 0) ! return (CVS_EX_FILE); } if (nuked == 0) { --- 146,153 ---- cvs_file_getpath(cf, fpath, sizeof(fpath)); if (cvs_remove_file(fpath) < 0) ! fatal("cvs_remove_local: cvs_remove_file `%s' failed", ! fpath); } if (nuked == 0) { *************** *** 161,167 **** return (0); } else if (cf->cf_cvstat == CVS_FST_ADDED) { if (cvs_ent_remove(entf, cf->cf_name, 0) == -1) ! return (CVS_EX_FILE); if (strlcpy(buf, CVS_PATH_CVSDIR, sizeof(buf)) >= sizeof(buf) || strlcat(buf, "/", sizeof(buf)) >= sizeof(buf) || --- 162,168 ---- return (0); } else if (cf->cf_cvstat == CVS_FST_ADDED) { if (cvs_ent_remove(entf, cf->cf_name, 0) == -1) ! fatal("cvs_remove_local: cvs_ent_remove failed"); if (strlcpy(buf, CVS_PATH_CVSDIR, sizeof(buf)) >= sizeof(buf) || strlcat(buf, "/", sizeof(buf)) >= sizeof(buf) || *************** *** 171,177 **** fatal("cvs_remove_local: path truncation"); if (cvs_unlink(buf) == -1) ! return (CVS_EX_FILE); if (verbosity > 1) cvs_log(LP_NOTICE, "removed `%s'", cf->cf_name); --- 172,178 ---- fatal("cvs_remove_local: path truncation"); if (cvs_unlink(buf) == -1) ! fatal("cvs_remove_local: cvs_unlink `%s' failed", buf); if (verbosity > 1) cvs_log(LP_NOTICE, "removed `%s'", cf->cf_name); *************** *** 184,190 **** return (0); } else { if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) ! return (CVS_EX_DATA); /* Prefix revision with `-' */ ent->ce_status = CVS_ENT_REMOVED; --- 185,191 ---- return (0); } else { if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) ! fatal("cvs_remove_local: cvs_ent_get failed"); /* Prefix revision with `-' */ ent->ce_status = CVS_ENT_REMOVED;