forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7d294f
committed
Improve pg_check_dir's handling of closedir() failures.
Avoid losing errno if readdir() fails and closedir() works. This alsoavoids leaking the directory handle when readdir() fails. Commit6f03927 introduced logic to betterhandle readdir() and closedir() failures, bu it missed these cases.Extracted from a larger patch by Marco Nenciarini.1 parent2df854f commitd7d294f
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| |||
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
61 |
| - | |
| 62 | + | |
62 | 63 |
| |
63 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 |
| |
65 | 73 |
|
0 commit comments
Comments
(0)