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 | 4076.1292087604@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags (Magnus Hagander <magnus@hagander.net>) |
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> On Sat, Dec 11, 2010 at 17:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 2. Why didn't the previously hard-wired constants passed to chmod
>> and umask fail on Windows? �The M$ documentation I can find at the
>> moment suggests that *only* _S_IREAD and _S_IWRITE bits are allowed
>> in the inputs to those functions, which apparently is untrue or none
>> of this code would have executed successfully.
> Probably it ignores any flags it doesn't know about?
Maybe, but unless _S_IREAD and _S_IWRITE are defined as 0400 and 0200,
the code would have been doing the wrong thing altogether.
I'm not sure why you think the group/other macros couldn't be #define'd
as 0? But in any case there's still the question of where S_IRWXU is
coming from, since it clearly does work in several places.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера