[Cluster-devel] cluster/fence/agents/ipmilan ipmilan.c
rohara at sourceware.org
rohara at sourceware.org
Mon Jan 29 20:31:14 UTC 2007
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: rohara at sourceware.org 2007-01-29 20:31:13
Modified files:
fence/agents/ipmilan: ipmilan.c
Log message:
If no password is specified, pass a "-P ''" to the ipmitool to prevent
it from prompting for a password.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/ipmilan/ipmilan.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.6&r2=1.1.2.7
--- cluster/fence/agents/ipmilan/ipmilan.c 2006/02/02 22:09:03 1.1.2.6
+++ cluster/fence/agents/ipmilan/ipmilan.c 2007/01/29 20:31:13 1.1.2.7
@@ -191,6 +191,9 @@
if (ipmi->i_password) {
snprintf(arg, sizeof(arg), " -P %s", ipmi->i_password);
strncat(cmd, arg, sizeof(cmd) - strlen(arg));
+ } else {
+ snprintf(arg, sizeof(arg), " -P ''");
+ strncat(cmd, arg, sizeof(cmd) - strlen(arg));
}
/* Tack on the -v flags for ipmitool; in most cases, i_verbose
More information about the Cluster-devel
mailing list