summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2007-01-11 02:35:55 +0000
committerjoris <joris@openbsd.org>2007-01-11 02:35:55 +0000
commit80f6ca9b2ba9c07b064035e81071590756ef3e37 (patch)
tree27bb21a53cc64adc0501a93cf11c7c87df43b145 /usr.bin/cvs/commit.c
parentremove unused #define DHCP_MIN_LEN (diff)
downloadwireguard-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/commit.c')
-rw-r--r--usr.bin/cvs/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index cad1b092588..1dfed2a7222 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.88 2007/01/07 03:08:15 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.89 2007/01/11 02:35:55 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -116,6 +116,7 @@ cvs_commit(int argc, char **argv)
cvs_file_freelist(&files_added);
if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
+ cvs_client_connect_to_server();
cr.fileproc = cvs_client_sendfile;
if (argc > 0)