summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/cmd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c
index f9e08c78f29..ccbd423d863 100644
--- a/usr.bin/cvs/cmd.c
+++ b/usr.bin/cvs/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.5 2005/03/31 17:18:24 joris Exp $ */
+/* $OpenBSD: cmd.c,v 1.6 2005/04/01 09:44:00 joris Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -109,6 +109,12 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv)
}
}
+ /* if we are the version command, don't bother going
+ * any further now, we did everything we had to.
+ */
+ if (cmd->cmd_op == CVS_OP_VERSION)
+ return (0);
+
if (c->cmd_examine != NULL)
cvs_file_examine(cvs_files, c->cmd_examine, NULL);