Bug #213 ยป carpvippassfix.diff
etc/inc/interfaces.inc | ||
---|---|---|
359 | 359 |
if ($vip['mode'] == "carp") { |
360 | 360 |
$vip_password = $vip['password']; |
361 | 361 |
$vip_password = str_replace(" ", "", $vip_password); |
362 |
$vip_password = escapeshellarg(addslashes($vip_password)); |
|
362 | 363 |
|
363 | 364 |
/* ensure CARP IP really exists prior to loading up */ |
364 | 365 |
$found = false; |
... | ... | |
397 | 398 | |
398 | 399 |
$broadcast_address = gen_subnet_max($vip['subnet'], $vip['subnet_bits']); |
399 | 400 |
if($vip['password'] != "") |
400 |
$password = " pass \"" . $vip_password . "\"";
|
|
401 |
$password = " pass {$vip_password}";
|
|
401 | 402 |
if($debugging) |
402 | 403 |
echo "Configuring carp{$carp_instances_counter}.\n"; |
403 | 404 |
fwrite($fd, "/sbin/ifconfig carp" . $carp_instances_counter . " " . $vip['subnet'] . "/" . $vip['subnet_bits'] . " vhid " . $vip['vhid'] . "{$carpdev} advskew 200 " . $password . "\n"); |