diff options
author | 2007-01-11 02:35:55 +0000 | |
---|---|---|
committer | 2007-01-11 02:35:55 +0000 | |
commit | 80f6ca9b2ba9c07b064035e81071590756ef3e37 (patch) | |
tree | 27bb21a53cc64adc0501a93cf11c7c87df43b145 /usr.bin/cvs/annotate.c | |
parent | remove unused #define DHCP_MIN_LEN (diff) | |
download | wireguard-openbsd-80f6ca9b2ba9c07b064035e81071590756ef3e37.tar.xz wireguard-openbsd-80f6ca9b2ba9c07b064035e81071590756ef3e37.zip |
in a remote setup:
do not connect to the remote server until we are sure all the options
passed to the commands are valid.
noticed by xsa@
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r-- | usr.bin/cvs/annotate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 212ceee18ad..5e26f7a425f 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.32 2006/11/27 16:02:52 xsa Exp $ */ +/* $OpenBSD: annotate.c,v 1.33 2007/01/11 02:35:55 joris Exp $ */ /* * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> * @@ -72,6 +72,7 @@ cvs_annotate(int argc, char **argv) cr.leavedir = NULL; if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + cvs_client_connect_to_server(); cr.fileproc = cvs_client_sendfile; if (force_head == 1) |