=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/history.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/cvs/history.c 2005/01/31 22:04:58 1.7 +++ src/usr.bin/cvs/history.c 2005/02/28 20:45:07 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.7 2005/01/31 22:04:58 jfb Exp $ */ +/* $OpenBSD: history.c,v 1.8 2005/02/28 20:45:07 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -166,6 +166,9 @@ } cvs_hist_close(hp); } else { + if (cvs_connect(root) < 0) + return (EX_PROTOCOL); + if ((flags & CVS_HF_C) && (cvs_sendarg(root, "-c", 0) < 0)) return (EX_PROTOCOL);