summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-28 21:58:43 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-28 21:58:43 +0000
commita99b6473b290b3f5071b40736b350e932234c570 (patch)
tree2ee8e4d908f517899d15625fa40347676ca29274 /usr.bin/cvs
parenta1c38d31c605797a046f8d6788f734e733a8be06 (diff)
abort with an error if we can't figure out what the connection
method is
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/root.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index 255663448dd..fcc2594e686 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.13 2004/12/07 17:10:56 tedu Exp $ */
+/* $OpenBSD: root.c,v 1.14 2004/12/28 21:58:42 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -141,6 +141,11 @@ cvsroot_parse(const char *str)
break;
}
}
+ if (i == CVS_NBMETHODS) {
+ cvs_log(LP_ERR, "unknown method `%s'", sp);
+ cvsroot_free(root);
+ return (NULL);
+ }
}
/* find the start of the actual path */