public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE2 - fence: fix IPMI spawn /bin/bash rather than /bin/sh
@ 2008-11-20 13:44 Jan Friesse
  0 siblings, 0 replies; only message in thread
From: Jan Friesse @ 2008-11-20 13:44 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d57fba422b8c5822bc751cc190277367e42ad597
Commit:        d57fba422b8c5822bc751cc190277367e42ad597
Parent:        47514a9ac69f4b6ef0bcd87a2763de24dff12f5d
Author:        Jan Friesse <jfriesse@redhat.com>
AuthorDate:    Thu Nov 20 14:39:20 2008 +0100
Committer:     Jan Friesse <jfriesse@redhat.com>
CommitterDate: Thu Nov 20 14:42:52 2008 +0100

fence: fix IPMI spawn /bin/bash rather than /bin/sh

It's not guaranteed, that /bin/sh will be symlink to
shell, which is bash (or ksh) compliant, so it's better
to use /bin/bash.
---
 fence/agents/ipmilan/expect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/ipmilan/expect.c b/fence/agents/ipmilan/expect.c
index 4156886..fa85bd8 100644
--- a/fence/agents/ipmilan/expect.c
+++ b/fence/agents/ipmilan/expect.c
@@ -304,7 +304,7 @@ StartProcess(const char * cmd, int * readfd, int * writefd, int flags)
 			sched_setscheduler(0, SCHED_OTHER, &sp);
 		}
 #endif
-		execlp("/bin/sh", "sh", "-c", cmd, NULL);
+		execlp("/bin/bash", "bash", "-c", cmd, NULL);
 		perror("cannot exec shell!");
 		exit(1);
 


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

only message in thread, other threads:[~2008-11-20 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20 13:44 cluster: STABLE2 - fence: fix IPMI spawn /bin/bash rather than /bin/sh 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).