diff options
author | 2005-02-28 20:45:07 +0000 | |
---|---|---|
committer | 2005-02-28 20:45:07 +0000 | |
commit | c7f12caab682adb01031f351ed623903db05c92e (patch) | |
tree | 826adfc3ae83eebcc8a4f5185a960973d75b3d26 | |
parent | Fix confusion between KS_paragraph and KS_section; inspired from a PS/2 (diff) | |
download | wireguard-openbsd-c7f12caab682adb01031f351ed623903db05c92e.tar.xz wireguard-openbsd-c7f12caab682adb01031f351ed623903db05c92e.zip |
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); |