public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Jan Friesse <honzaf@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: RHEL5 - fence: fix WTI RPS-10 to do default reboot Date: Thu, 12 Feb 2009 09:56:00 -0000 [thread overview] Message-ID: <20090212095611.8F6EC1201DC@lists.fedorahosted.org> (raw) 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) { /*
reply other threads:[~2009-02-12 9:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090212095611.8F6EC1201DC@lists.fedorahosted.org \ --to=honzaf@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).