summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-08-10 16:01:27 +0000
committerjoris <joris@openbsd.org>2005-08-10 16:01:27 +0000
commitc05d468caa6507574f21febb5b49639b48abc867 (patch)
tree374ad231d6d567b715c18ed713e5651238ba409e
parentstyle.. (diff)
downloadwireguard-openbsd-c05d468caa6507574f21febb5b49639b48abc867.tar.xz
wireguard-openbsd-c05d468caa6507574f21febb5b49639b48abc867.zip
do not forget to also add the local roots to the cache.
fixes a segfault in localmode. ok xsa@
-rw-r--r--usr.bin/cvs/root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index 4574450df49..7ca1b460f05 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.23 2005/08/10 14:49:20 xsa Exp $ */
+/* $OpenBSD: root.c,v 1.24 2005/08/10 16:01:27 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -162,6 +162,7 @@ cvsroot_parse(const char *str)
if (root->cr_method == CVS_METHOD_NONE)
root->cr_method = CVS_METHOD_LOCAL;
/* stop here, it's just a path */
+ TAILQ_INSERT_HEAD(&cvs_rcache, root, root_cache);
return (root);
}