public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL4 - fence: fix WTI RPS-10 to do default reboot
@ 2009-02-12 9:53 Jan Friesse
0 siblings, 0 replies; only message in thread
From: Jan Friesse @ 2009-02-12 9:53 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6c4a959a07ed7563cce3a38248cb60befae9bf97
Commit: 6c4a959a07ed7563cce3a38248cb60befae9bf97
Parent: 8552819f297fa5821d01917878b253c0f42db046
Author: Jan Friesse <jfriesse@redhat.com>
AuthorDate: Thu Feb 12 10:52:23 2009 +0100
Committer: Jan Friesse <jfriesse@redhat.com>
CommitterDate: Thu Feb 12 10:52:23 2009 +0100
fence: fix WTI RPS-10 to do default reboot
This patch long lives in master/STABLE2 branch, but never
arrive to RHEL4. It's originally created by Lon Hohberger.
rhbz#472885
---
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:53 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:53 cluster: RHEL4 - 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).