[Cluster-devel] cluster/fence/agents/ipmilan ipmilan.c

rohara at sourceware.org rohara at sourceware.org
Mon Jan 29 20:34:38 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rohara at sourceware.org	2007-01-29 20:34:38

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&r1=1.9&r2=1.10

--- cluster/fence/agents/ipmilan/ipmilan.c	2007/01/10 23:45:20	1.9
+++ cluster/fence/agents/ipmilan/ipmilan.c	2007/01/29 20:34:38	1.10
@@ -197,6 +197,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