Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags |
| Дата | |
| Msg-id | 4602.1292089583@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: [COMMITTERS] pgsql: Use symbolic names not octal
constants for file permission flags
|
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> On Sat, Dec 11, 2010 at 17:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 1. How did all those pre-existing references to S_IRXWU compile?
> Yeah, that's weird. IIRC (I stopped looking for the moment, need a
> step back) some of them were protected by #ifndef WIN32, but not all
> of them..
The lightbulb just went on: in win32.h,
#define mkdir(a,b) mkdir(a)
I didn't go through in complete detail, but I'll bet all the "working"
instances are in mkdir calls, or else inside #ifndef WIN32.
I think we can just #define the other cases as zeroes. I'm not sure why
you think that's an issue for open --- the privileges don't exist.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера