Bad bug in fopen() wrapper code

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Bad bug in fopen() wrapper code
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FBD3@algol.sollentuna.se
обсуждение исходный текст
Ответы Re: Bad bug in fopen() wrapper code  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Bad bug in fopen() wrapper code  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
There is a small bug in the fopen() wrapper code that was applied a
couple of weeks back for win32. It sets the wrong flags for files opened
in "append" mode. This makes the logfile writing not work - syslog.c
opens the logfile in append mode, but if the file does not already
exist, it will not be opened and an error is returned - causing the
postmaster to terminate.

This is pretty bad and pretty urgent - with this, systems installed by
the MSI installer simply *do not start*, because they are by default
configured to write logs to a file...

Attached patch sets the  O_CREAT option when appending to files.

//Ma <<open.diff>> gnus

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Timezone doc patch
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: pg_ctl error msg on Windows 2000