Re: current_logfiles not following group access and instead followslog_file_mode permissions

Поиск
Список
Период
Сортировка
От Haribabu Kommi
Тема Re: current_logfiles not following group access and instead followslog_file_mode permissions
Дата
Msg-id CAJrrPGf+kOZVGet6-uCi0c7dTsckU5BdeKfGQEK4d1_Joouk8w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: current_logfiles not following group access and instead followslog_file_mode permissions  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Ответы Re: current_logfiles not following group access and instead followslog_file_mode permissions  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers

On Thu, Mar 21, 2019 at 12:41 PM Haribabu Kommi <kommi.haribabu@gmail.com> wrote:

On Wed, Mar 20, 2019 at 4:33 PM Michael Paquier <michael@paquier.xyz> wrote: 
And actually it seems to me that you have a race condition in that
stuff.  I think that you had better use umask(), then fopen, and then
once again umask() to put back the previous permissions, removing the
extra chmod() call.

Changed the patch to use umask() instead of chmod() according to
your suggestion.

updated patch attached.

Earlier attached patch is wrong.
Correct patch attached. Sorry for the inconvenience.

Regards,
Haribabu Kommi
Fujitsu Australia
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Haribabu Kommi
Дата:
Сообщение: Re: MSVC Build support with visual studio 2019
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: DNS SRV support for LDAP authentication