diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-02-28 20:45:08 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-02-28 20:45:08 +0000 |
commit | 92fd899cc698916d450d2421a78a735bf4e5c232 (patch) | |
tree | d401e185fb1629e57a33a49812fda4397d0d2df2 | |
parent | cd008393cadf73ab39e49ca6d450ceda6dbdd81a (diff) |
do not forget to call cvs_connect() when we are using a remote cvs server.
ok jfb@
-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); |