=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/root.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/cvs/root.c 2004/08/02 22:45:57 1.9 --- src/usr.bin/cvs/root.c 2004/08/27 15:40:44 1.10 *************** *** 1,4 **** ! /* $OpenBSD: root.c,v 1.9 2004/08/02 22:45:57 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: root.c,v 1.10 2004/08/27 15:40:44 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 36,41 **** --- 36,42 ---- #include "cvs.h" #include "log.h" + #include "proto.h" extern char *cvs_rootstr; *************** *** 104,109 **** --- 105,115 ---- memset(root, 0, sizeof(*root)); root->cr_ref = 2; root->cr_method = CVS_METHOD_NONE; + CVS_RSTVR(root); + + /* enable the most basic commands at least */ + CVS_SETVR(root, CVS_REQ_VALIDREQ); + CVS_SETVR(root, CVS_REQ_VALIDRESP); root->cr_str = strdup(str); if (root->cr_str == NULL) {