From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Hiroshi Saito" <hiroshi3110(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #4619: pg_ctl reports strange error message when be executed on non executable directory |
Date: | 2009-01-16 15:04:08 |
Message-ID: | 6077.1232118248@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"Hiroshi Saito" <hiroshi3110(at)gmail(dot)com> writes:
> Operating system: Mac OS X 10.5.6
> Description: pg_ctl reports strange error message when be executed on
> non executable directory
It works all right (with some bleating) on Linux, so this seems to be
basically a deficiency of Apple's getcwd(). I really don't see any
reason for us to worry about it though, because the only way to be in
a directory that you don't have read permission for is to chmod it
that way after you cd into it --- the shell won't let you cd into
a directory if it can't read it:
pro:~ tgl$ mkdir bogus
pro:~ tgl$ chmod 000 bogus
pro:~ tgl$ cd bogus
bash: cd: bogus: Permission denied
(above test is on OSX 10.5.6). So I hardly find this to be something
the average user is going to have a problem with; anyone who manages
to get into the situation will know exactly why it's failing, and there
isn't any good reason why it should need to work.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-01-16 15:20:27 | Re: pg_listener entries deleted under heavy NOTIFY load only on Windows |
Previous Message | Tom Lane | 2009-01-16 14:45:38 | Re: BUG #4618: nolock changes first column name of query result set to 'nolock' |