summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2007-01-11 02:35:56 +0000
committerJoris Vink <joris@cvs.openbsd.org>2007-01-11 02:35:56 +0000
commit1124f9512c12c95519a730c29ad801dc4be66469 (patch)
tree21d2d1f5da9f98a462abb6bf92d13d2bf3240ec0 /usr.bin/cvs/add.c
parent64f2fea116dedf51d29d29c081c572f1d47d73a4 (diff)
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/add.c')
-rw-r--r--usr.bin/cvs/add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index 24b70a3a28f..97983ac15b4 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.65 2006/12/20 16:40:27 xsa Exp $ */
+/* $OpenBSD: add.c,v 1.66 2007/01/11 02:35:55 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -73,6 +73,7 @@ cvs_add(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 (logmsg != NULL)