[pgpool-committers: 2354] pgpool: Fix for 0000122: pgpool-II 3.4.0 - if_up_cmd and if_down_cmd $_

Muhammad Usama m.usama at gmail.com
Sat Dec 13 03:33:04 JST 2014


Fix for 0000122: pgpool-II 3.4.0 - if_up_cmd and if_down_cmd $_IP_$ substitution
is too optimistic.

exec_ifconfig() function while breaking the command string into tokens was
assuming that "$_IP_$" keyword will always have a white space at the end and
when "$_IP_$" has some prefix, it gets broken down into two tokens "$_IP_$"
instead of one.
To fix this the command string in exec_ifconfig() is passed to newly added
string_replace() function to substitute all occurrences of "$_IP_$"
with delegate_IP before tokenizing.

Branch
------
V3_3_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a049a14dfacd78ccc2cd4e5584f5f5e6729855e7

Modified Files
--------------
watchdog/wd_if.c |   58 +++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 47 insertions(+), 11 deletions(-)



More information about the pgpool-committers mailing list