Re: [HACKERS] getcwd failing suddenly

From: Taral <taral(at)cyberjunkie(dot)com>
To: "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] getcwd failing suddenly
Date: 1999-01-22 23:33:22
Message-ID: 99012217342600.01027@taral.dobiecenter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message John Ryan 1999-01-23 00:11:34 Re: [HACKERS] Postgres Speed or lack thereof
Previous Message Constantin Teodorescu 1999-01-22 23:11:07 Re: [HACKERS] view?