diff options
Diffstat (limited to 'usr.bin/cvs/history.c')
-rw-r--r-- | usr.bin/cvs/history.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/history.c b/usr.bin/cvs/history.c index 6b424e55061..cdd47a4d874 100644 --- a/usr.bin/cvs/history.c +++ b/usr.bin/cvs/history.c @@ -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 <jfb@openbsd.org> * All rights reserved. @@ -166,6 +166,9 @@ cvs_history(int argc, char **argv) } 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); |