forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbb509a4
Fix lstat() for broken junction points on Windows.
When using junction points to emulate symlinks on Windows, one edge casewas not handled correctly by commitc5cb8f3: if a junction point isbroken (pointing to a non-existent path), we'd report ENOENT. Thisdoesn't break any known use case, but was noticed while developing atest suite for these functions and is fixed here for completeness.Also add translation ERROR_CANT_RESOLVE_FILENAME -> ENOENT, as that isone of the errors Windows can report for some kinds of broken paths.Discussion:https://postgr.es/m/CA%2BhUKG%2BajSQ_8eu2AogTncOnZ5me2D-Cn66iN_-wZnRjLN%2Bicg%40mail.gmail.com(cherry picked from commit387803d)Author: Thomas Munro <tmunro@postgresql.org>Author: Alexandra Wang <alexandra.wang.oss@gmail.com>1 parentee21910 commitbb509a4
2 files changed
+28
-5
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
167 | 173 |
| |
168 | 174 |
| |
169 | 175 |
| |
|
Lines changed: 22 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 |
| - | |
131 |
| - | |
132 |
| - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
133 | 148 |
| |
134 | 149 |
| |
135 | 150 |
| |
136 | 151 |
| |
137 | 152 |
| |
138 |
| - | |
| 153 | + | |
139 | 154 |
| |
140 | 155 |
| |
141 | 156 |
| |
| |||
171 | 186 |
| |
172 | 187 |
| |
173 | 188 |
| |
| 189 | + | |
174 | 190 |
| |
175 | 191 |
| |
176 | 192 |
| |
177 |
| - | |
| 193 | + | |
| 194 | + | |
178 | 195 |
| |
179 | 196 |
| |
180 | 197 |
| |
|
0 commit comments
Comments
(0)