Re: [HACKERS] getcwd failing suddenly - Mailing list pgsql-hackers

From Taral
Subject Re: [HACKERS] getcwd failing suddenly
Date
Msg-id 99012217342600.01027@taral.dobiecenter.com
Whole thread Raw
In response to getcwd failing suddenly  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
List pgsql-hackers
On Fri, 22 Jan 1999, you wrote:
>Recently I have started seeing this error when starting the server.
>
>shell-init: could not get current directory: getcwd: cannot access parent directories

You're starting it from a directory which user postgres does not have access
to. Therefore reading '..' (which the shell that su launched uses to determine
current directory) fails. It doesn't matter, although your solution works.
Other solution: Just use 'cd' instead of 'cd /usr/local/pgsql'

Taral


pgsql-hackers by date:

Previous
From: John Ryan
Date:
Subject: Re: [HACKERS] Postgres Speed or lack thereof
Next
From: "Thomas G. Lockhart"
Date:
Subject: MySQL vulnerability