Improve pg_check_dir's handling of closedir() failures. Avoid losing errno if readdir() fails and closedir() works. This also avoids leaking the directory handle when readdir() fails. Commit 6f03927fce038096f53ca67eeab9adb24938f8a6 introduced logic to better handle readdir() and closedir() failures, bu it missed these cases.
Extracted from a larger patch by Marco Nenciarini. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/319406c2ac6b6534d82ff76c6f5c544c8483f9af Modified Files -------------- src/port/pgcheckdir.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
