diff options
-rw-r--r-- | usr.bin/cvs/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c index 11c8d155842..c4e37c10d0a 100644 --- a/usr.bin/cvs/cmd.c +++ b/usr.bin/cvs/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.32 2005/07/25 12:05:43 xsa Exp $ */ +/* $OpenBSD: cmd.c,v 1.33 2005/07/26 16:03:20 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -171,11 +171,11 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv) if (!(cmd->cmd_flags & CVS_CMD_ALLOWSPEC) && (argc > 0)) return (CVS_EX_USAGE); + cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str); + if ((root->cr_method != CVS_METHOD_LOCAL) && (cvs_connect(root) < 0)) return (CVS_EX_PROTO); - cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str); - if (cmd->cmd_pre_exec != NULL) { if ((ret = cmd->cmd_pre_exec(root)) != 0) return (ret); |