diff options
author | 2005-05-24 04:01:03 +0000 | |
---|---|---|
committer | 2005-05-24 04:01:03 +0000 | |
commit | 3a88874a7130146dfc84f6ce34e15a1bb1bc933b (patch) | |
tree | 6eaa428de73716f4f721402027065eb18a24fb64 | |
parent | POSIX specifies errno values that were BSD-specific once upon a time. (diff) | |
download | wireguard-openbsd-3a88874a7130146dfc84f6ce34e15a1bb1bc933b.tar.xz wireguard-openbsd-3a88874a7130146dfc84f6ce34e15a1bb1bc933b.zip |
send the -n flag to the server as part of connection initialization
if it was given on the command-line
-rw-r--r-- | usr.bin/cvs/proto.c | 4 |
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)) |