public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - group_tool: only write dump size
@ 2008-11-06 18:02 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2008-11-06 18:02 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a911c86f7c6b9d159877a16c3d9d721dec7b917b
Commit:        a911c86f7c6b9d159877a16c3d9d721dec7b917b
Parent:        e6431fe49efd272b9585fe6c2577573d7d0b6474
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Thu Nov 6 11:44:03 2008 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Thu Nov 6 11:44:03 2008 -0600

group_tool: only write dump size

bz 470318

instead of the max 1MB size of the dump buffer.
This was already fixed for group_tool dump, but
fence and gfs dumps were missed.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/tool/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/group/tool/main.c b/group/tool/main.c
index c3565c3..57399b0 100644
--- a/group/tool/main.c
+++ b/group/tool/main.c
@@ -418,7 +418,7 @@ int do_maxline_dump(int argc, char **argv, int fd)
 	}
 
 	do_read(fd, inbuf, sizeof(inbuf));
-	do_write(STDOUT_FILENO, inbuf, sizeof(inbuf));
+	do_write(STDOUT_FILENO, inbuf, strlen(inbuf));
 
 	close(fd);
 	return 0;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-06 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 18:02 RHEL5 - group_tool: only write dump size David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).