summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-13 00:58:26 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-13 00:58:26 +0000
commita88258c6c074739a132093f82549ff351b668739 (patch)
tree06d61c14d26e8fc7f8a89e1762b5ce7a136e83fd /usr.bin/rcs/ci.c
parentfc136bbab2d84700a4655e5e586ae70c67e1795b (diff)
*** empty log message ***
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r--usr.bin/rcs/ci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 2a68f687088..d8408bacd0d 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.140 2006/04/12 08:27:31 deraadt Exp $ */
+/* $OpenBSD: ci.c,v 1.141 2006/04/13 00:58:25 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -277,7 +277,9 @@ checkin_main(int argc, char **argv)
/* XXX - Should we rcsnum_free(pb.newrev)? */
if (rev_str != NULL)
- rcs_set_rev(rev_str, &pb.newrev);
+ if ((pb.newrev = rcs_getrevnum(rev_str, pb.file)) ==
+ NULL)
+ fatal("invalid revision: %s", rev_str);
if (pb.flags & NEWFILE)
status = checkin_init(&pb);