summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-01-27 08:50:52 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-01-27 08:50:52 +0000
commitf8083033e57d91e8e954214dada5de6fecc29bca (patch)
treec55b1677f7eb69e0df096ddafb237ca4c56bcc86 /usr.bin/cvs
parent6b33665c84902d19131467ba3676bbb142b598a1 (diff)
use fatal();
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/tag.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c
index c3b94cccfc5..b83264d704c 100644
--- a/usr.bin/cvs/tag.c
+++ b/usr.bin/cvs/tag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.c,v 1.36 2006/01/02 08:11:56 xsa Exp $ */
+/* $OpenBSD: tag.c,v 1.37 2006/01/27 08:50:51 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2004 Joris Vink <joris@openbsd.org>
@@ -266,12 +266,9 @@ cvs_tag_local(CVSFILE *cf, void *arg)
cvs_rcs_getpath(cf, rcspath, sizeof(rcspath));
- rf = rcs_open(rcspath, RCS_READ|RCS_WRITE);
- if (rf == NULL) {
- cvs_log(LP_ERR, "failed to open %s: %s", rcspath,
+ if ((rf = rcs_open(rcspath, RCS_READ|RCS_WRITE)) == NULL)
+ fatal("cvs_tag_local: rcs_open: %s: %s", rcspath,
rcs_errstr(rcs_errno));
- return (CVS_EX_DATA);
- }
if (tag_delete == 1) {
/* XXX */
@@ -282,10 +279,9 @@ cvs_tag_local(CVSFILE *cf, void *arg)
}
if (cvs_noexec == 0) {
- if (rcs_sym_add(rf, tag_name, tag_rev) < 0) {
- cvs_log(LP_ERR, "failed to tag %s: %s", rcspath,
+ if (rcs_sym_add(rf, tag_name, tag_rev) < 0)
+ fatal("cvs_tag_local: rcs_sym_add: %s: %s", rcspath,
rcs_errstr(rcs_errno));
- }
}
if (verbosity > 0)