From 011e7972b55a00035ef01cb1b007db6fd674a3c2 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 9 Aug 2005 10:33:47 +0000 Subject: fix our root caching method, it was utterly broken and would cause opencvs to segfault in several cases. ok jfb@, xsa@ --- usr.bin/cvs/cvs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/cvs.h') diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index db3eadc6694..6417d02d4f2 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.77 2005/08/04 13:31:14 xsa Exp $ */ +/* $OpenBSD: cvs.h,v 1.78 2005/08/09 10:33:46 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -213,6 +213,8 @@ struct cvsroot { FILE *cr_srverr; char *cr_version; /* version of remote server */ u_char cr_vrmask[16]; /* mask of valid requests supported by server */ + + TAILQ_ENTRY(cvsroot) root_cache; }; #define CVS_SETVR(rt, rq) ((rt)->cr_vrmask[(rq) / 8] |= (1 << ((rq) % 8))) -- cgit v1.2.3