This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

master - rgmanager: make clulog accept "-" as the first char inmessages


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=eae417ba2c1a2bfa979c08834f2df4eb4fb2ad14
Commit:        eae417ba2c1a2bfa979c08834f2df4eb4fb2ad14
Parent:        7a8091631f84030b7a59934d1ffd06ec16507b87
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Fri Nov 14 16:40:07 2008 -0500
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Fri Nov 14 16:44:32 2008 -0500

rgmanager: make clulog accept "-" as the first char in messages

Resolves:
	https://bugzilla.redhat.com/show_bug.cgi?id=471431
---
 rgmanager/src/utils/clulog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/utils/clulog.c b/rgmanager/src/utils/clulog.c
index ca92005..7c0d483 100644
--- a/rgmanager/src/utils/clulog.c
+++ b/rgmanager/src/utils/clulog.c
@@ -27,6 +27,7 @@ main(int argc, char **argv)
 	int severity = -1;
 
 	char *logmsg = argv[argc-1];
+	--argc;
 
 	while ((opt = getopt(argc, argv, "s:h")) != EOF) {
 		switch(opt) {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]