summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-05-30 09:52:56 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-05-30 09:52:56 +0000
commit79309614829726eb1a46913a7aba74b5a9399ad0 (patch)
tree432a5992379f1f785d0d8b867414c7dfd081b98b /usr.bin
parent92843212cbcfdf87f82db44be609b3d04407f62d (diff)
don't forget to send the log message, this fixes the commit command.
ok xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/commit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index f46f89fbcd6..7816b5eda44 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.35 2005/05/30 07:37:01 xsa Exp $ */
+/* $OpenBSD: commit.c,v 1.36 2005/05/30 09:52:55 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -160,6 +160,9 @@ cvs_commit_pre_exec(struct cvsroot *root)
return (CVS_EX_DATA);
if (root->cr_method != CVS_METHOD_LOCAL) {
+ if (cvs_logmsg_send(root, cvs_msg) < 0)
+ return (CVS_EX_PROTO);
+
if (rev != NULL) {
if ((cvs_sendarg(root, "-r", 0) < 0) ||
(cvs_sendarg(root, rev, 0) < 0))