diff options
author | 2005-05-30 09:52:55 +0000 | |
---|---|---|
committer | 2005-05-30 09:52:55 +0000 | |
commit | a591b030f0f98d50ad2df534daf74b07bf8961bb (patch) | |
tree | de5c97abc6a200f999b13247990b209e8de39619 /usr.bin/cvs/commit.c | |
parent | -D and -r can be used simultaneously, pointed out by marc@ and thus (diff) | |
download | wireguard-openbsd-a591b030f0f98d50ad2df534daf74b07bf8961bb.tar.xz wireguard-openbsd-a591b030f0f98d50ad2df534daf74b07bf8961bb.zip |
don't forget to send the log message, this fixes the commit command.
ok xsa@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 5 |
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)) |