diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-04-01 09:44:01 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-04-01 09:44:01 +0000 |
commit | 22e2a8c41db9d1467cda0ab0562973d806dbbc75 (patch) | |
tree | c70cb2ee0f1a344b0ef5807b5aa5be9d27f4af26 /usr.bin | |
parent | 7fb19d007d0aa266c15638e4603674e89f00d200 (diff) |
make sure we don't do unneeded things for the version command.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/cmd.c | 8 |
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); |