From f76ce13c60f59d192b6157c227860b4f49afd1b3 Mon Sep 17 00:00:00 2001 From: joris Date: Thu, 30 Aug 2007 11:07:18 +0000 Subject: properly send our log message to the server using Argumentx, so we no longer break when the log message has multiple lines. from Tobias Stoeckmann, thanks for doing my work! --- usr.bin/cvs/commit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index afa9c6ed9a0..34a51fa3590 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.108 2007/06/28 17:45:49 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.109 2007/08/30 11:07:18 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -133,7 +133,8 @@ cvs_commit(int argc, char **argv) if (!(flags & CR_RECURSE_DIRS)) cvs_client_send_request("Argument -l"); - cvs_client_send_request("Argument -m%s", logmsg); + if (logmsg != NULL) + cvs_client_send_logmsg(logmsg); cvs_client_send_files(argv, argc); cvs_client_senddir("."); -- cgit v1.2.3-59-g8ed1b