diff options
author | 2007-08-30 11:07:18 +0000 | |
---|---|---|
committer | 2007-08-30 11:07:18 +0000 | |
commit | f76ce13c60f59d192b6157c227860b4f49afd1b3 (patch) | |
tree | 41033abcab0fef5bc39a5edd67b05a4ee94f7095 /usr.bin/cvs/commit.c | |
parent | handle address ranges in skip step calculation (diff) | |
download | wireguard-openbsd-f76ce13c60f59d192b6157c227860b4f49afd1b3.tar.xz wireguard-openbsd-f76ce13c60f59d192b6157c227860b4f49afd1b3.zip |
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!
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -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("."); |