summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-05-24 04:01:04 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-05-24 04:01:04 +0000
commit07fb12018cb98f8bacd6fde0ec22a4b8be5f3f66 (patch)
treea8f200d83846cb4fbaddf06d0244582613341769 /usr.bin/cvs/proto.c
parentd1fb05468f7bdf1a193a8b1a6f8d8d9a205233a4 (diff)
send the -n flag to the server as part of connection initialization
if it was given on the command-line
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 00fe9c02f24..c30e93bfd90 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.52 2005/05/23 20:13:39 joris Exp $ */
+/* $OpenBSD: proto.c,v 1.53 2005/05/24 04:01:03 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -320,6 +320,8 @@ cvs_connect(struct cvsroot *root)
(cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-Q") < 0))
return (-1);
+ if (cvs_noexec && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-n") < 0))
+ return (-1);
if (cvs_nolog && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-l") < 0))
return (-1);
if (cvs_readonly && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-r") < 0))