diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-02-17 10:19:30 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-02-17 11:08:40 -0500 |
commit | d7d294f5935e157f239b32c6d1f3d4e923a4eed5 (patch) | |
tree | 3f5bb236805da150e8eaa97253ad19123701910d /src/backend/utils/adt/ruleutils.c | |
parent | 2df854f842bee71cb59f7307b5bad9c3235be2ec (diff) |
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.
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions