From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohara@sourceware.org Date: 29 Jan 2007 20:43:47 -0000 Subject: [Cluster-devel] cluster/fence/agents/ipmilan ipmilan.c Message-ID: <20070129204347.21587.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: STABLE Changes by: rohara at sourceware.org 2007-01-29 20:43:47 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=STABLE&r1=1.1.2.2.6.3&r2=1.1.2.2.6.4 --- cluster/fence/agents/ipmilan/ipmilan.c 2006/02/02 22:11:23 1.1.2.2.6.3 +++ cluster/fence/agents/ipmilan/ipmilan.c 2007/01/29 20:43:47 1.1.2.2.6.4 @@ -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