Re: can't open file '/var/root/.pgpass' ?

Поиск
Список
Период
Сортировка
От OpenMacNews
Тема Re: can't open file '/var/root/.pgpass' ?
Дата
Msg-id 43CD6B23.4020009@gmail.com
обсуждение исходный текст
Ответ на Re: can't open file '/var/root/.pgpass' ?  (Dave Page <dpage@vale-housing.co.uk>)
Ответы Re: can't open file '/var/root/.pgpass' ?  (Dave Page <dpage@vale-housing.co.uk>)
Re: uncopyable selection from hints window  (OpenMacNews <openmacnews@gmail.com>)
Список pgadmin-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hi,

> OK, that's a little weird. What is $HOME set to? On my box it's
> /Users/dpage.

% echo $HOME
  /Users/devuser

i.e., my normal, non-root user's DIR ...

> So it sounds like it's not writing the file properly. The function below is
> the one that figures out the filename. It would appear that it would most
> likely be wxStandardPaths that's getting it wrong if anything, but then it
> works fine for me.
>
> wxString pgServer::passwordFilename()
> {
>     wxStandardPaths stdp;
>     wxString fname=stdp.GetUserConfigDir()
> #ifdef WIN32
>         + wxT("\\postgresql");
>     mkdir(fname.ToAscii());
>     fname += wxT("\\pgpass.conf");
>
> #else
>         + wxT("/.pgpass");
> #endif
>
>     wxLogInfo(wxT("Using password file %s"), fname.c_str());    return
> fname;
> }

hrm ... nothing above looks odd.  if wxStandardPaths was broken, there'd be lots of *other*
problems as well, i'd think.

it's something else ... :-/

richard


- --

/"\
\ /  ASCII Ribbon Campaign
 X   against HTML email, vCards
/ \  & micro$oft attachments

[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB  D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iEUEAREDAAYFAkPNayMACgkQlffdvTZxCMYZwQCYu3pC17exoeq4/tOe1uVaPmlG
+QCgpKl4YAfD/S+6So2zQsdOmQqLEk8=
=iFVe
-----END PGP SIGNATURE-----


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: can't open file '/var/root/.pgpass' ?
Следующее
От: svn@pgadmin.org
Дата:
Сообщение: SVN Commit by dpage: r4920 - in trunk/pgadmin3: docs/en_US i18n pkg/debian src/frm