pgsql: Properly check for readdir/closedir() failures

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: Properly check for readdir/closedir() failures
Дата
Msg-id E1WR3VV-0005vO-IC@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Properly check for readdir/closedir() failures

Clear errno before calling readdir() and handle old MinGW errno bug
while adding full test coverage for readdir/closedir failures.

Backpatch through 8.4.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/de13cea4b96d1939703b42cfe96278f3a915ac4e

Modified Files
--------------
contrib/pg_standby/pg_standby.c     |   17 ++++++++--
src/backend/storage/file/fd.c       |    6 +---
src/bin/initdb/initdb.c             |   12 ++-----
src/bin/pg_resetxlog/pg_resetxlog.c |   63 ++++++++++++++++++-----------------
src/port/dirent.c                   |    8 +++--
src/port/dirmod.c                   |   22 +++++++-----
6 files changed, 71 insertions(+), 57 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Properly check for readdir/closedir() failures
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Properly check for readdir/closedir() failures