diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-30 15:24:54 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-30 15:24:54 +0000 |
commit | cc5eb79462b233618d4ba96767c7f482c0784288 (patch) | |
tree | dea6e4cde84f95a72db86ecf5441838189071e77 /usr.bin/cvs/status.c | |
parent | c6da3bc91e1781469eb8b88e63e5c609214ef2fc (diff) |
add missing method check in pre_exec handler ... spotted by joris@.
options can be sent to server now without making it go crazy..
Diffstat (limited to 'usr.bin/cvs/status.c')
-rw-r--r-- | usr.bin/cvs/status.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c index 5b184d96123..5aea36ad504 100644 --- a/usr.bin/cvs/status.c +++ b/usr.bin/cvs/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.25 2005/06/30 09:42:14 xsa Exp $ */ +/* $OpenBSD: status.c,v 1.26 2005/06/30 15:24:53 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -107,8 +107,11 @@ cvs_status_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg) static int cvs_status_pre_exec(struct cvsroot *root) { - if (verbose && (cvs_sendarg(root, "-v", 0) < 0)) - return (CVS_EX_PROTO); + if (root->cr_method != CVS_METHOD_LOCAL) { + if (verbose && (cvs_sendarg(root, "-v", 0) < 0)) + return (CVS_EX_PROTO); + } + return (0); } |