diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-08-09 10:33:47 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-08-09 10:33:47 +0000 |
commit | 011e7972b55a00035ef01cb1b007db6fd674a3c2 (patch) | |
tree | f4955d1043983db3a67f9a91b66a2f8cff252188 /usr.bin/cvs/cvs.h | |
parent | dac8a278f86c1eb83a0f62c12b6d19bad8bbf078 (diff) |
fix our root caching method, it was utterly broken and would
cause opencvs to segfault in several cases.
ok jfb@, xsa@
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r-- | usr.bin/cvs/cvs.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <jfb@openbsd.org> * 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))) |