- Notifications
You must be signed in to change notification settings - Fork5k
Commit9f1c674
Fix stat() for recursive junction points on Windows.
Commitc5cb8f3 supposed that we'd only ever have to follow one junctionpoint in stat(), because we don't construct longer chains of them ourselves.When examining a parent directory supplied by the user, we should really beable to cope with longer chains, just in case someone has their systemset up that way. Choose an arbitrary cap of 8, to match the minimumacceptable value of SYMLOOP_MAX in POSIX.Previously I'd avoided reporting ELOOP thinking Windows didn't have it,but it turns out that it does, so we can use the proper error number.Reviewed-by: Roman Zharkov <r.zharkov@postgrespro.ru>Discussion:https://postgr.es/m/CA%2BhUKGJ7JDGWYFt9%3D-TyJiRRy5q9TtPfqeKkneWDr1XPU1%2Biqw%40mail.gmail.comDiscussion:https://postgr.es/m/CA%2BhUKG%2BajSQ_8eu2AogTncOnZ5me2D-Cn66iN_-wZnRjLN%2Bicg%40mail.gmail.comBackpatched commit4517358 as above by Thomas Munro into releases 13 thru 15Discussion:https://postgr.es/m/CA+hUKGLbnv+pe3q1fYOVkLD3pMra7GuihfMxUN-1831YH9RYQg@mail.gmail.com1 parent060f9f5 commit9f1c674
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| 204 | + | |
204 | 205 |
| |
| 206 | + | |
205 | 207 |
| |
206 | 208 |
| |
207 | 209 |
| |
| 210 | + | |
| 211 | + | |
208 | 212 |
| |
209 |
| - | |
| 213 | + | |
210 | 214 |
| |
211 | 215 |
| |
212 | 216 |
| |
213 | 217 |
| |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
214 | 224 |
| |
215 | 225 |
| |
216 | 226 |
| |
217 | 227 |
| |
218 | 228 |
| |
219 | 229 |
| |
220 |
| - | |
| 230 | + | |
221 | 231 |
| |
222 | 232 |
| |
223 | 233 |
| |
| |||
236 | 246 |
| |
237 | 247 |
| |
238 | 248 |
| |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
| 249 | + | |
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
|
0 commit comments
Comments
(0)