From: Nozomi Anzai Date: Tue, 2 Feb 2016 01:50:33 +0000 (+0900) Subject: Show the path to .pcppass X-Git-Tag: V3_5_1~5 X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=b76cc56478099dd516a33dcb40ceb5c345af0785;p=pgpooladmin.git Show the path to .pcppass --- diff --git a/install/checkParameter.php b/install/checkParameter.php index fb19031..e904087 100644 --- a/install/checkParameter.php +++ b/install/checkParameter.php @@ -181,10 +181,10 @@ if (isset($_POST['pcp_hostname']) && $_POST['pcp_hostname']) { $pcp_hostname = _PGPOOL2_PCP_HOSTNAME; } +$proc_user_info = posix_getpwuid(posix_geteuid()); +$pcppass_file = "{$proc_user_info['dir']}/.pcppass"; if (3.5 <= $version) { $msgPcpPassFile = ''; - $proc_user_info = posix_getpwuid(posix_geteuid()); - $pcppass_file = "{$proc_user_info['dir']}/.pcppass"; if (! is_file($pcppass_file)) { $msgPcpPassFile = 'File not found'; } elseif (fileowner($pcppass_file) != $proc_user_info['uid']) {