public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - fence: fix WTI RPS-10 to do default reboot
@ 2009-02-12  9:56 Jan Friesse
  0 siblings, 0 replies; only message in thread
From: Jan Friesse @ 2009-02-12  9:56 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=80f30cbbff2e5802b96f8b00f12a78d77d8f9644
Commit:        80f30cbbff2e5802b96f8b00f12a78d77d8f9644
Parent:        823bc90ff6b989a7bc43377d3e35528604ff4d6b
Author:        Jan Friesse <jfriesse@redhat.com>
AuthorDate:    Thu Feb 12 10:55:53 2009 +0100
Committer:     Jan Friesse <jfriesse@redhat.com>
CommitterDate: Thu Feb 12 10:55:53 2009 +0100

fence: fix WTI RPS-10 to do default reboot

This patch long lives in master/STABLE2 branch, but never
arrive to RHEL5. It's originally created by Lon Hohberger.

rhbz#322291
---
 fence/agents/rps10/rps10.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/fence/agents/rps10/rps10.c b/fence/agents/rps10/rps10.c
index 0fc3e6b..08efd94 100644
--- a/fence/agents/rps10/rps10.c
+++ b/fence/agents/rps10/rps10.c
@@ -144,7 +144,7 @@ printf("   -d <device>    Use serial device <dev>.  Default=%s\n",
 printf("   -s <speed>     Use speed <speed>. Default=9600\n"
        "                  Valid speeds: 300, 1200, 2400, 9600\n");
 printf("   -o <op>        Operation to perform.\n");
-printf("                  Valid operations: on, off, reboot\n");
+printf("                  Valid operations: on, off, [reboot]\n");
 printf("   -V             Print version and exit\n");
 printf("   -v             Verbose mode\n\n");
 printf("If no options are specified, the following options will be read\n");
@@ -314,8 +314,6 @@ get_options_stdin(char *dev, size_t devlen, int *speed, int *port,
 	int line = 0;
 	char *name, *val;
 
-	op[0] = 0;
-
 	while (fgets(in, sizeof(in), stdin)) {
 		++line;
 
@@ -396,6 +394,7 @@ main(int argc, char **argv)
 	char *pname = basename(argv[0]);
 
 	strncpy(dev, DEFAULT_DEVICE, sizeof(dev));
+	strncpy(op, "reboot", sizeof(op));
 
 	if (argc > 1) {
 		/*


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

only message in thread, other threads:[~2009-02-12  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12  9:56 cluster: RHEL5 - fence: fix WTI RPS-10 to do default reboot Jan Friesse

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).