diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-08-10 16:01:28 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-08-10 16:01:28 +0000 |
commit | 18195d544fcf4c88b72a1a9d8e04f2575b967299 (patch) | |
tree | ecd230a419b64740091c934aa1c3ba225dba2d35 /usr.bin/cvs/root.c | |
parent | d8e4a415def9a1dda1a422c1d2f331f86bc0675a (diff) |
do not forget to also add the local roots to the cache.
fixes a segfault in localmode.
ok xsa@
Diffstat (limited to 'usr.bin/cvs/root.c')
-rw-r--r-- | usr.bin/cvs/root.c | 3 |
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); } |