| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Magnus Hagander <magnus(at)hagander(dot)net> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |
| Date: | 2010-12-11 16:23:36 |
| Message-ID: | 3274.1292084616@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers pgsql-hackers |
Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Sat, Dec 11, 2010 at 17:13, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Ah, I have a theory: <fcntl.h>.
> Nope, not there. I can't find S_IWGRP in any of the files.
Well, I notice that copydir.c compiled before, and still compiles after,
despite this change:
- if (mkdir(todir, S_IRUSR | S_IWUSR | S_IXUSR) != 0)
+ if (mkdir(todir, S_IRWXU) != 0)
I think the reason it's not failing is that it includes <fcntl.h>.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2010-12-11 16:33:04 | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |
| Previous Message | Magnus Hagander | 2010-12-11 16:18:51 | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2010-12-11 16:33:04 | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |
| Previous Message | Magnus Hagander | 2010-12-11 16:18:51 | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |