]> granicus.if.org Git - postgresql/commit
Properly check for readdir/closedir() failures
authorBruce Momjian <bruce@momjian.us>
Fri, 21 Mar 2014 17:45:11 +0000 (13:45 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 21 Mar 2014 17:45:11 +0000 (13:45 -0400)
commit6f03927fce038096f53ca67eeab9adb24938f8a6
treee6ebc4031e1ec37c0766e1ae6baa83f39b0da227
parent68a2e52bbaf98f136a96b3a0d734ca52ca440a95
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.
contrib/pg_archivecleanup/pg_archivecleanup.c
contrib/pg_standby/pg_standby.c
src/backend/storage/file/fd.c
src/bin/initdb/initdb.c
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/common/pgfnames.c
src/port/dirent.c
src/port/pgcheckdir.c