summaryrefslogtreecommitdiff
path: root/contrib/cvs/src/root.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2008-03-19 14:46:59 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2008-03-19 14:46:59 +0000
commit76fd2245b5dc6793b57cc7c3bf4fc6af7a352563 (patch)
tree0ae354b8af76926a31947d53202545980b36afe4 /contrib/cvs/src/root.c
parent274835303c48ac29e7fd30a670e7a02fe78595e2 (diff)
Notes
Diffstat (limited to 'contrib/cvs/src/root.c')
-rw-r--r--contrib/cvs/src/root.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/cvs/src/root.c b/contrib/cvs/src/root.c
index 8e2380fbcdf2..44d1f9a9bb4e 100644
--- a/contrib/cvs/src/root.c
+++ b/contrib/cvs/src/root.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1986-2005 The Free Software Foundation, Inc.
+ * Copyright (C) 1986-2008 The Free Software Foundation, Inc.
*
* Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
* and others.
@@ -182,6 +182,12 @@ static int root_allow_count;
static char **root_allow_vector;
static int root_allow_size;
+int
+root_allow_used ()
+{
+ return root_allow_count;
+}
+
void
root_allow_add (arg)
char *arg;
@@ -438,6 +444,8 @@ parse_cvsroot (root_in)
newroot->method = server_method;
else if (strcmp (method, "ext") == 0)
newroot->method = ext_method;
+ else if (strcmp (method, "extssh") == 0)
+ newroot->method = extssh_method;
else if (strcmp (method, "fork") == 0)
newroot->method = fork_method;
else
@@ -667,6 +675,7 @@ parse_cvsroot (root_in)
# endif
case server_method:
case ext_method:
+ case extssh_method:
no_port = 1;
/* no_password already set */
check_hostname = 1;